From 607be1ffb0a001e4a2bf9cae2babd44b4d898d25 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Thu, 6 Sep 2012 16:13:47 +0200 Subject: Fixed post --- lib/opentox.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/opentox.rb') diff --git a/lib/opentox.rb b/lib/opentox.rb index 80644db..faa7b58 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -95,9 +95,9 @@ module OpenTox end # Post object to webservice - def post service_uri, wait=true + def post params=nil, wait=true # TODO: RDFXML - uri = RestClientWrapper.post service_uri, to_ntriples, { :content_type => "text/plain", :subjectid => @subjectid} + uri = RestClientWrapper.post @uri.to_s, params, { :content_type => "text/plain", :subjectid => @subjectid} wait_for_task uri if wait end -- cgit v1.2.3