summaryrefslogtreecommitdiff
path: root/lib/rest_client_wrapper.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-02-10 15:49:04 +0100
committermguetlein <martin.guetlein@gmail.com>2011-02-10 15:49:04 +0100
commit616bb4b7aefed40cda0e09c88dc35ce1a82f8106 (patch)
treee6e2a082bc0da159f23de156fd46884e09aa0f71 /lib/rest_client_wrapper.rb
parent1f6625cffbb49ec93f6b4647ca1d11d01c5d11ea (diff)
small fixes
Diffstat (limited to 'lib/rest_client_wrapper.rb')
-rw-r--r--lib/rest_client_wrapper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rest_client_wrapper.rb b/lib/rest_client_wrapper.rb
index 7a6ed2a..d3136c7 100644
--- a/lib/rest_client_wrapper.rb
+++ b/lib/rest_client_wrapper.rb
@@ -62,6 +62,7 @@ module OpenTox
waiting_task!=nil and !(waiting_task.is_a?(Task) || waiting_task.is_a?(SubTask))
headers.each{ |k,v| headers.delete(k) if v==nil } if headers #remove keys with empty values, as this can cause problems
## PENDING partner services accept subjectid only in header
+ headers = {} unless headers
headers[:subjectid] = payload.delete(:subjectid) if payload and payload.is_a?(Hash) and payload.has_key?(:subjectid)
# PENDING needed for NUTA, until we finally agree on how to send subjectid