baloo icon indicating copy to clipboard operation
baloo copied to clipboard

Baloo overwrites `Transfer-Encoding` header

Open jcoyne opened this issue 7 years ago • 1 comments

When I provide:

t.Post("/v1/identifiers/druids").
		SetHeader("Transfer-Encoding", "identity").
		Expect(t).
		Status(200).
		Type("json").
		JSON(map[string]string{"status": "OK"}).
		Done()

When I look at the packets (via wireshark) I see that my header has been overwritten by: Transfer-Encoding: chunked

jcoyne avatar Feb 21 '18 20:02 jcoyne

It looks like I can work around this by adding:

		Body(nil).

jcoyne avatar Feb 21 '18 20:02 jcoyne