puppetlabs / clj-http-client

HTTP client library wrapping Apache HttpAsyncClient
Apache License 2.0
15 stars 30 forks source link

(maint) ensure unbuffered-stream correctly handles 204 responses #105

Closed jonathannewman closed 7 months ago

jonathannewman commented 7 months ago

In the case that an unbuffered stream is used and the server responds in a 204, with no response, the client was throwing an exception because the entity in the response is null. This adds a test that demonstrates the failure, and fixes the underlying issue.