diff options
-rw-r--r-- | lib/4store.rb | 2 | ||||
-rw-r--r-- | lib/opentox.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/4store.rb b/lib/4store.rb index 8715ea7..6143bbe 100644 --- a/lib/4store.rb +++ b/lib/4store.rb @@ -5,7 +5,7 @@ module OpenTox @@accept_formats = [ "application/rdf+xml", "text/turtle", "text/plain", "text/uri-list", "text/html", 'application/sparql-results+xml' ] @@content_type_formats = [ "application/rdf+xml", "text/turtle", "text/plain" ] - def self.list service_uri, mime_type + def self.list mime_type mime_type = "text/html" if mime_type.match(%r{\*/\*}) bad_request_error "'#{mime_type}' is not a supported mime type. Please specify one of #{@@accept_formats.join(", ")} in the Accept Header." unless @@accept_formats.include? mime_type if mime_type =~ /uri-list/ diff --git a/lib/opentox.rb b/lib/opentox.rb index 3fb0088..3ce815b 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -70,7 +70,7 @@ module OpenTox # Get a list of objects at the server get "/#{SERVICE}/?" do - FourStore.list uri("/#{SERVICE}"), @accept + FourStore.list @accept end # Create a new resource |