diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-09-06 16:13:47 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-09-06 16:13:47 +0200 |
commit | 607be1ffb0a001e4a2bf9cae2babd44b4d898d25 (patch) | |
tree | 03ddbeffd29284531777f1a61d679ce28d3b4c57 /lib/opentox.rb | |
parent | d1645d959ab2b0701ff6bd616d44ca7aaeaf0eca (diff) |
Fixed post
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |