summaryrefslogtreecommitdiff
path: root/lib/rest-client-wrapper.rb
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2012-05-07 17:48:06 +0200
committerrautenberg <rautenberg@in-silico.ch>2012-05-07 17:48:06 +0200
commitd6f9c38c44fd6b7e41eca1f57451cc452cc4eec7 (patch)
tree23131e2f6a4d48f1af444a406479edd71d47c9bd /lib/rest-client-wrapper.rb
parente55a25e9fb0c91a581f898ce894a27e8bdd3d780 (diff)
parent6f25a7f04863b4fc6dccab59d690695371f1f0c7 (diff)
Merge branch 'release/v0.0.3'HEADv0.0.3master
Diffstat (limited to 'lib/rest-client-wrapper.rb')
-rw-r--r--lib/rest-client-wrapper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb
index 479d5a5..3071432 100644
--- a/lib/rest-client-wrapper.rb
+++ b/lib/rest-client-wrapper.rb
@@ -18,7 +18,8 @@ module OpenTox
# check input
@subjectid = headers[:subjectid] ? headers[:subjectid] : nil
bad_request_error "Invalid URI: '#{uri}'" unless URI.valid? uri
- not_found_error "URI '#{uri}' not found." unless URI.accessible?(uri, @subjectid) unless URI.ssl?(uri)
+ #TODO fix for internal installations
+ #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|