This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git


The following commit(s) were added to refs/heads/develop by this push:
     new 855e16b  fix: remove double Header: Content-Type
     new e27a2c0  Merge pull request #350 from jinfeijie/develop
855e16b is described below

commit 855e16b055d83609870d09f1233b25ba2b2de63a
Author: jinfeijie <[email protected]>
AuthorDate: Fri Jan 14 14:52:41 2022 +0800

    fix: remove double Header: Content-Type
---
 pkg/common/http/manager.go | 1 -
 1 file changed, 1 deletion(-)

diff --git a/pkg/common/http/manager.go b/pkg/common/http/manager.go
index ae291b8..70807ee 100644
--- a/pkg/common/http/manager.go
+++ b/pkg/common/http/manager.go
@@ -154,7 +154,6 @@ func (hcm *HttpConnectionManager) buildTargetResponse(c 
*pch.HttpContext) {
 func (hcm *HttpConnectionManager) findRoute(hc *pch.HttpContext) error {
        ra, err := hcm.routerCoordinator.Route(hc)
        if err != nil {
-               hc.AddHeader(constant.HeaderKeyContextType, 
constant.HeaderValueTextPlain)
                hc.SendLocalReply(stdHttp.StatusNotFound, 
constant.Default404Body)
 
                e := errors.Errorf("Requested URL %s not found", hc.GetUrl())

Reply via email to