support the configure of url in "http" section

This commit is contained in:
XueBing
2016-12-18 22:40:58 +08:00
Unverified
parent 47db75e921
commit edf4bc431d
10 changed files with 227 additions and 106 deletions
+2
View File
@@ -45,6 +45,8 @@ func GetHttpRequestInfo(c *conn.Conn) (_ net.Conn, _ map[string]string, err erro
// hostName
tmpArr := strings.Split(request.Host, ":")
reqInfoMap["Host"] = tmpArr[0]
reqInfoMap["Path"] = request.URL.Path
reqInfoMap["Scheme"] = request.URL.Scheme
// Authorization
authStr := request.Header.Get("Authorization")