Skip to content

Commit

Permalink
Merge pull request #227 from httprb/update-user-agent
Browse files Browse the repository at this point in the history
Use "http.rb" in the User-Agent string
  • Loading branch information
tarcieri committed May 13, 2015
2 parents 6928a95 + 3c1701d commit 2b515d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class UnsupportedMethodError < RequestError; end
class UnsupportedSchemeError < RequestError; end

# Default User-Agent header value
USER_AGENT = "RubyHTTPGem/#{HTTP::VERSION}".freeze
USER_AGENT = "http.rb/#{HTTP::VERSION}".freeze

# RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1
METHODS = [:options, :get, :head, :post, :put, :delete, :trace, :connect]
Expand Down

0 comments on commit 2b515d6

Please sign in to comment.