mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Hot protocols improvements (for 662) (#724)
* Improve deadline handling in streaming protocols * Move special headers handling down to the protocols * Adding function format documentation for JSON changes * Add tests for request url and method in JSON protocol * Fix protocol missing fn-specific info * Fix import * Add panic for something that should never happen
This commit is contained in:
@@ -168,9 +168,6 @@ func TestCallConfigurationRequest(t *testing.T) {
|
||||
}
|
||||
|
||||
expectedHeaders := make(http.Header)
|
||||
expectedHeaders.Add("FN_CALL_ID", model.ID)
|
||||
expectedHeaders.Add("FN_METHOD", method)
|
||||
expectedHeaders.Add("FN_REQUEST_URL", url)
|
||||
|
||||
expectedHeaders.Add("MYREALHEADER", "FOOLORD")
|
||||
expectedHeaders.Add("MYREALHEADER", "FOOPEASANT")
|
||||
|
||||
Reference in New Issue
Block a user