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

master
hao 4 years ago committed by GitHub
parent e6ef1fca12
commit 2087ac1e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save