소스 검색

修正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 {