lib/httpx/request.rb in httpx-0.22.0 vs lib/httpx/request.rb in httpx-0.22.1
- old
+ new
@@ -84,10 +84,10 @@
end
def response=(response)
return unless response
- if response.is_a?(Response) && response.status == 100
+ if response.is_a?(Response) && response.status == 100 && @headers.key?("expect")
@informational_status = response.status
return
end
@response = response
end