Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baloo overwrites Transfer-Encoding header #21

Open
jcoyne opened this issue Feb 21, 2018 · 1 comment
Open

Baloo overwrites Transfer-Encoding header #21

jcoyne opened this issue Feb 21, 2018 · 1 comment

Comments

@jcoyne
Copy link

jcoyne commented Feb 21, 2018

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
Copy link
Author

jcoyne commented Feb 21, 2018

It looks like I can work around this by adding:

		Body(nil).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant