diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-05-07 17:48:06 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-05-07 17:48:06 +0200 |
commit | d6f9c38c44fd6b7e41eca1f57451cc452cc4eec7 (patch) | |
tree | 23131e2f6a4d48f1af444a406479edd71d47c9bd /lib/rest-client-wrapper.rb | |
parent | e55a25e9fb0c91a581f898ce894a27e8bdd3d780 (diff) | |
parent | 6f25a7f04863b4fc6dccab59d690695371f1f0c7 (diff) |
Diffstat (limited to 'lib/rest-client-wrapper.rb')
-rw-r--r-- | lib/rest-client-wrapper.rb | 3 |
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| |