You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A server MUST NOT send a Transfer-Encoding header field in any response with a status code of 1xx (Informational) or 204 (No Content).
hoverfly seems to break this restriction when using https (at least) which may break clients (eg: snoyberg/http-client#408)
Steps to reproduce the issue
Add this pair to a simulation.json, hoverctl import it, set hoverfly in simulate mode (hoverctl mode simulate) and use the proxy with a client that gives no leeway (eg: http-client)
If possible, add screenshots to help explain your problem
A decrypted dump of the response given by Hoverfly with request/response pair given above:
The response body (highlighted) is 0\r\n\r\n which appear to be the chunk header for 0-sized chunk (\0\r\n) and the empty terminated chunk itself (\r\n)
Expected result
The responses with 204 status code and 1xx shouldn't have the transfer-encoding: chunked header nor perform that encoding on the empty response body.
Additional relevant information
Hoverfly version: cd51f9d with a patch to dump the private key to be able to decode the traffic with wireshark:
Description of the bug
According to the RFC7230 (http://tools.ietf.org/html/rfc7230#section-3.3.1):
hoverfly seems to break this restriction when using
https
(at least) which may break clients (eg: snoyberg/http-client#408)Steps to reproduce the issue
Add this pair to a
simulation.json
,hoverctl import
it, set hoverfly in simulate mode (hoverctl mode simulate
) and use the proxy with a client that gives no leeway (eg: http-client)Observed result
Hoverfly error messages seen (If none, say none)
If possible, add screenshots to help explain your problem
A decrypted dump of the response given by Hoverfly with request/response pair given above:
The response body (highlighted) is
0\r\n\r\n
which appear to be the chunk header for 0-sized chunk (\0\r\n
) and the empty terminated chunk itself (\r\n
)Expected result
The responses with
204
status code and1xx
shouldn't have thetransfer-encoding: chunked
header nor perform that encoding on the empty response body.Additional relevant information
The text was updated successfully, but these errors were encountered: