Skip to content

Commit f45e611

Browse files
binarycodeioquatix
authored andcommitted
HTTP methods should be uppercase
1 parent 8ddc5c3 commit f45e611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/async/http/faraday/adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def close
4343
def call(env)
4444
super
4545

46-
response = @internet.call(env[:method], env[:url].to_s, env[:request_headers], env[:body])
46+
response = @internet.call(env[:method].to_s.upcase, env[:url].to_s, env[:request_headers], env[:body])
4747

4848
save_response(env, response.status, response.read, response.headers)
4949

0 commit comments

Comments
 (0)