diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-03-14 15:25:50 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-03-14 15:25:50 +0100 |
commit | 0c5d2e678908a2d4aea43efbedbedc2c0439be30 (patch) | |
tree | 2a056c6edc088a37b7e489de435706af79f324e7 /lib/rest-client-wrapper.rb | |
parent | 989f20ae58c3ecb0ce62bc4468c3dab2599637b3 (diff) |
descriptor tests
Diffstat (limited to 'lib/rest-client-wrapper.rb')
-rw-r--r-- | lib/rest-client-wrapper.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb index 6b5d602..9321a75 100644 --- a/lib/rest-client-wrapper.rb +++ b/lib/rest-client-wrapper.rb @@ -29,7 +29,6 @@ module OpenTox bad_request_error "Headers are not a hash: #{headers.inspect} for #{uri}." unless headers==nil or headers.is_a?(Hash) headers[:subjectid] ||= @@subjectid bad_request_error "Invalid URI: '#{uri}'" unless URI.valid? uri - #resource_not_found_error "URI '#{uri}' not found.", uri unless URI.accessible?(uri, @subjectid) unless URI.ssl?(uri) # make sure that no header parameters are set in the payload [:accept,:content_type,:subjectid].each do |header| if defined? $aa || URI(uri).host == URI($aa[:uri]).host |