mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
faraday adaptar: use a default reason when none is matched by Net::HTTP::STATUS_CODES
Fixes https://github.com/HoneyryderChuck/httpx/issues/76
This commit is contained in:
parent
7c21c33999
commit
7811cbf3a7
@ -149,7 +149,7 @@ module Faraday
|
||||
|
||||
module ResponseMethods
|
||||
def reason
|
||||
Net::HTTP::STATUS_CODES.fetch(@status)
|
||||
Net::HTTP::STATUS_CODES.fetch(@status, "Non-Standard status code")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user