Skip to content

Commit ddf167f

Browse files
committed
Initialize the response header before passing
Signed-off-by: s8sg <swarvanusg@gmail.com>
1 parent 3480ce8 commit ddf167f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

controller/http/new_request_handler_wrapper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func newRequestHandlerWrapper(runtime runtimepkg.Runtime, handler func(*runtimep
3333

3434
response := &runtimepkg.Response{}
3535
response.RequestID = id
36+
response.Header = make(map[string][]string)
3637
request := &runtimepkg.Request{
3738
Body: body,
3839
Header: req.Header,

runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import (
77
type Runtime interface {
88
Init() error
99
CreateExecutor(*Request) (executor.Executor, error)
10-
}
10+
}

0 commit comments

Comments
 (0)