summaryrefslogtreecommitdiff
path: root/edgemesh/pkg/protocol/http/http.go
diff options
context:
space:
mode:
authorXiang Dai <long0dai@foxmail.com>2020-05-13 17:37:39 +0800
committerXiang Dai <long0dai@foxmail.com>2020-05-23 16:27:37 +0800
commitef0056fadf76b623e1bc68c369ecb462b4d6b17b (patch)
treeed4ff122c79a30652b3fcdc8d301fa750b7314a3 /edgemesh/pkg/protocol/http/http.go
parentMerge pull request #1719 from fisherxu/keadm-1.3-docs (diff)
downloadkubeedge-ef0056fadf76b623e1bc68c369ecb462b4d6b17b.tar.gz
enable gosimple linter
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
Diffstat (limited to 'edgemesh/pkg/protocol/http/http.go')
-rw-r--r--edgemesh/pkg/protocol/http/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/edgemesh/pkg/protocol/http/http.go b/edgemesh/pkg/protocol/http/http.go
index a38738c29..9e84921f3 100644
--- a/edgemesh/pkg/protocol/http/http.go
+++ b/edgemesh/pkg/protocol/http/http.go
@@ -109,7 +109,7 @@ func (p *HTTP) responseCallback(data *invocation.Response) error {
StatusCode: http.StatusServiceUnavailable,
Proto: p.req.Proto,
Request: p.req,
- Header: make(http.Header, 0),
+ Header: make(http.Header),
}
respBytes, _ = httpResponseToBytes(resp)
// send error response back