mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
修正http转发头字段值错误 (#521)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user