summaryrefslogtreecommitdiff
path: root/lib/rest-client-wrapper.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-05-09 16:18:47 +0000
committerChristoph Helma <helma@in-silico.ch>2012-05-09 16:18:47 +0000
commit13ec52dff891dfe8f1f04315d8d8b5075e4b32e1 (patch)
treea25a7c94c213e60c6d9d64a1df60465c854faaa5 /lib/rest-client-wrapper.rb
parentaf80cd0ee7c5ecfc8033952b11382b50f67f99e8 (diff)
parentd0c219c5f04edce6ba74b3a937af412bcf24af14 (diff)
Merge branch 'feature/task' into development
Diffstat (limited to 'lib/rest-client-wrapper.rb')
-rw-r--r--lib/rest-client-wrapper.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb
index 3071432..479d5a5 100644
--- a/lib/rest-client-wrapper.rb
+++ b/lib/rest-client-wrapper.rb
@@ -18,8 +18,7 @@ module OpenTox
# check input
@subjectid = headers[:subjectid] ? headers[:subjectid] : nil
bad_request_error "Invalid URI: '#{uri}'" unless URI.valid? uri
- #TODO fix for internal installations
- #not_found_error "URI '#{uri}' not found." unless URI.accessible?(uri, @subjectid) unless URI.ssl?(uri)
+ not_found_error "URI '#{uri}' not found." unless URI.accessible?(uri, @subjectid) unless URI.ssl?(uri)
bad_request_error "Headers are not a hash: #{headers.inspect}" unless headers==nil or headers.is_a?(Hash)
# make sure that no header parameters are set in the payload
[:accept,:content_type,:subjectid].each do |header|