lib/httpx/response.rb in httpx-0.0.3 vs lib/httpx/response.rb in httpx-0.0.4
- old
+ new
@@ -60,10 +60,10 @@
"#<Response:#{object_id} @status=#{@status} @headers=#{@headers}>"
end
def raise_for_status
return if @status < 400
- raise HTTPError, @status
+ raise HTTPError, self
end
class Body
def initialize(response, threshold_size:, window_size: 1 << 14)
@response = response