ensure that certain request headers may not be overwritten / added to

This commit is contained in:
Reed Allman
2017-09-06 07:20:21 -07:00
parent c10462cdc5
commit 639adf70eb
3 changed files with 29 additions and 4 deletions

View File

@@ -64,6 +64,7 @@ func TestCallConfigurationRequest(t *testing.T) {
req.Header.Add("MYREALHEADER", "FOOLORD")
req.Header.Add("MYREALHEADER", "FOOPEASANT")
req.Header.Add("Content-Length", contentLength)
req.Header.Add("FN_ROUTE", "thewrongroute") // ensures that this doesn't leak out, should be overwritten
call, err := a.GetCall(
WithWriter(w), // XXX (reed): order matters [for now]