mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
ensure that certain request headers may not be overwritten / added to
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user