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

This commit is contained in:
hao
2021-02-26 16:17:30 +08:00
committed by GitHub
parent e6ef1fca12
commit 2087ac1e89

View File

@@ -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 {