浏览代码

修正http转发头字段值错误 (#521)

hao 4 年之前
父节点
当前提交
2087ac1e89
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rest/httpx/util.go

+ 1 - 1
rest/httpx/util.go

@@ -2,7 +2,7 @@ package httpx
 
 import "net/http"
 
-const xForwardFor = "X-Forward-For"
+const xForwardFor = "X-Forwarded-For"
 
 // GetRemoteAddr returns the peer address, supports X-Forward-For.
 func GetRemoteAddr(r *http.Request) string {