diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-10-11 15:16:44 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-10-11 15:16:44 +0200 |
commit | f1028bbed9f5b00391c66bf843eb95a39253ccf4 (patch) | |
tree | 515b41a93a13449abf0807c8b0d4e7dceac09c57 | |
parent | fb278d6d54b81e64ca81a76cccdfd0c71ac5f394 (diff) |
Fixed RestClientWrapper description
-rw-r--r-- | lib/rest-client-wrapper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb index 67a6264..1258339 100644 --- a/lib/rest-client-wrapper.rb +++ b/lib/rest-client-wrapper.rb @@ -6,7 +6,7 @@ module OpenTox # REST methods # Raises OpenTox::Error if call fails (rescued in overwrite.rb -> halt 502) - # Waits for Task to finish and returns result URI of Task per default + # Does not wait for task to finish and returns task uri # @param [String] destination URI # @param [optional,Hash|String] Payload data posted to the service # @param [optional,Hash] Headers with params like :accept, :content_type, :subjectid @@ -46,7 +46,7 @@ module OpenTox message = response.to_s parameters = request.args parameters[:headers][:subjectid] = "REMOVED" if parameters[:headers] and parameters[:headers][:subjectid] - message += "\nREST paramenters:\n#{parameters.inspect}" + message += "\nREST parameters:\n#{parameters.inspect}" error = known_errors.collect{|e| e if e[:code] == response.code}.compact.first Object.method(error[:method]).call message, uri # call error method else |