lib/httpx/request.rb in httpx-1.1.5 vs lib/httpx/request.rb in httpx-1.2.0
- old
+ new
@@ -125,14 +125,12 @@
if response.status == 100 && @headers.key?("expect")
@informational_status = response.status
return
end
- if response.status >= 103
- # 103 Early Hints advertises resources in document to browsers.
- # not very relevant for an HTTP client, discard.
- return
- end
+ # 103 Early Hints advertises resources in document to browsers.
+ # not very relevant for an HTTP client, discard.
+ return if response.status >= 103
end
@response = response
emit(:response_started, response)