Skip to content

Commit

Permalink
Initialize the response header before passing
Browse files Browse the repository at this point in the history
Signed-off-by: s8sg <[email protected]>
  • Loading branch information
s8sg committed Jul 13, 2020
1 parent 3480ce8 commit ddf167f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions controller/http/new_request_handler_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func newRequestHandlerWrapper(runtime runtimepkg.Runtime, handler func(*runtimep

response := &runtimepkg.Response{}
response.RequestID = id
response.Header = make(map[string][]string)
request := &runtimepkg.Request{
Body: body,
Header: req.Header,
Expand Down
2 changes: 1 addition & 1 deletion runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ import (
type Runtime interface {
Init() error
CreateExecutor(*Request) (executor.Executor, error)
}
}

0 comments on commit ddf167f

Please sign in to comment.