Fix handling of responses with an empty body #1

Merged
merged 1 commit into from Jul 2, 2013

2 participants

@wrr

Without this change the injector causes 'undefined' string to be returned (with no headers and not status code) instead of an empty response (for example 204: no content).

Wireshark dump:

DELETE /foo/bar/ HTTP/1.1
Host: localhost:3000
Accept: /
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive

undefined

@daffl daffl merged commit 79f12d4 into daffl:master Jul 2, 2013

1 check passed

Details default The Travis CI build passed
@daffl
Owner

Awesome thank you! I will push a new release.

@wrr
wrr commented Jul 7, 2013

Thanks you for accepting this. Will you be able to do a release in a next couple of days?

@daffl
Owner

Done. Release version 0.2.2

@wrr
wrr commented Jul 7, 2013

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment