mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-13 23:24:45 +08:00
增加协议头
This commit is contained in:
@@ -18,7 +18,8 @@ import (
|
||||
)
|
||||
|
||||
type HttpRequest struct {
|
||||
Body string
|
||||
Header http.Header
|
||||
Body string
|
||||
}
|
||||
|
||||
type HttpRespone struct {
|
||||
@@ -111,7 +112,7 @@ func (slf *HttpServerService) httpHandler(w http.ResponseWriter, r *http.Request
|
||||
}
|
||||
strCallPath := "_" + vstr[1] + ".HTTP_" + vstr[2]
|
||||
|
||||
request := HttpRequest{string(msg)}
|
||||
request := HttpRequest{r.Header, string(msg)}
|
||||
var resp HttpRespone
|
||||
|
||||
cluster.InstanceClusterMgr().Call(strCallPath, &request, &resp)
|
||||
|
||||
Reference in New Issue
Block a user