This commit is contained in:
crusader 2018-05-03 15:20:55 +09:00
parent 5378338700
commit 6d52a0d7c6

View File

@ -36,7 +36,7 @@ func NewConnector(containerType occp.ContainerType, portNumber int) (*csswc.Conn
connector.RequestHeader = func() http.Header { connector.RequestHeader = func() http.Header {
header := make(map[string][]string) header := make(map[string][]string)
header[occc.HTTPRequestHeaderKey_Container_Method] = []string{occc.HTTPRequestHeaderValue_Container_Method_Connect} header[occc.HTTPRequestHeaderKey_Container_Method] = []string{occc.HTTPRequestHeaderValue_Container_Method_Connect}
header[occp.HTTPRequestHeaderKey_Container_Type] = []string{containerType.String()} header[occc.HTTPRequestHeaderKey_Container_Type] = []string{containerType.String()}
return header return header
} }
connector.ResponseHandler = func(res *http.Response) { connector.ResponseHandler = func(res *http.Response) {