Permalink
Browse files

unnecessary accepts qvalue when unique media-range

  • Loading branch information...
1 parent 9c1ab97 commit 37b98cae02b648d6feb9f32e4fadecc400e69e00 @hsbt committed Aug 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/tig.rb
View
2 examples/tig.rb
@@ -2337,7 +2337,7 @@ def http(uri, open_timeout = nil, read_timeout = 60)
end
def http_req(method, uri, header = {}, credentials = nil)
- accepts = ["*/*;q=0.1"]
+ accepts = ["*/*"]
#require "mime/types"; accepts.unshift MIME::Types.of(uri.path).first.simplified
types = { "json" => "application/json", "txt" => "text/plain" }
ext = uri.path[/[^.]+\z/]

0 comments on commit 37b98ca

Please sign in to comment.