summaryrefslogtreecommitdiff
path: root/lib/rest-client-wrapper.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-05-04 10:29:55 +0000
committerChristoph Helma <helma@in-silico.ch>2012-05-04 10:29:55 +0000
commit8a5e3d69a16fc0c7d551e000270fe243ed121c85 (patch)
tree1f3dc8f4c2b9321fcda9aa4e44f5f26ba01cdb28 /lib/rest-client-wrapper.rb
parentb317039ba3e5ba10e7ea4769f256e345829ce8ff (diff)
ntriples as default format, rdfxml as fallback
Diffstat (limited to 'lib/rest-client-wrapper.rb')
-rw-r--r--lib/rest-client-wrapper.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb
index d5d9c82..479d5a5 100644
--- a/lib/rest-client-wrapper.rb
+++ b/lib/rest-client-wrapper.rb
@@ -18,7 +18,6 @@ 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)
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