Skip to content

Commit

Permalink
"X-FORWARDED-FOR" should be "X-FORWARD-FOR"
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMaz committed Oct 17, 2017
1 parent 67d8ad2 commit a5043cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Libraries/Nop.Core/WebHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public virtual string GetCurrentIpAddress()
{
//the X-Forwarded-For (XFF) HTTP header field is a de facto standard for identifying the originating IP address of a client
//connecting to a web server through an HTTP proxy or load balancer
var forwardedHttpHeaderKey = "X-FORWARD-FOR";
var forwardedHttpHeaderKey = "X-FORWARDED-FOR";
if (!string.IsNullOrEmpty(_hostingConfig.ForwardedHttpHeader))
{
//but in some cases server use other HTTP header
Expand Down

0 comments on commit a5043cd

Please sign in to comment.