Skip to content

Commit

Permalink
unnecessary accepts qvalue when unique media-range
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 10, 2011
1 parent 9c1ab97 commit 37b98ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tig.rb
Expand Up @@ -2337,7 +2337,7 @@ def http(uri, open_timeout = nil, read_timeout = 60)
end end


def http_req(method, uri, header = {}, credentials = nil) 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 #require "mime/types"; accepts.unshift MIME::Types.of(uri.path).first.simplified
types = { "json" => "application/json", "txt" => "text/plain" } types = { "json" => "application/json", "txt" => "text/plain" }
ext = uri.path[/[^.]+\z/] ext = uri.path[/[^.]+\z/]
Expand Down

0 comments on commit 37b98ca

Please sign in to comment.