Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed redundant removal of trailing spaces

  • Loading branch information...
commit 7ee853afaa07ab1ca280dcfff0d48d3fff5d454c 1 parent 3d5ba6a
@Siyo92 Siyo92 authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/HTTPSock.cpp
View
3  src/HTTPSock.cpp
@@ -114,8 +114,7 @@ void CHTTPSock::ReadLine(const CString& sData) {
if (m_uPostLen > MAX_POST_SIZE)
PrintErrorPage(413, "Request Entity Too Large", "The request you sent was too large.");
} else if (sName.Equals("X-Forwarded-For:")) {
- CString sIP = sLine.Token(1, false);
- m_sForwardedIP = sIP.TrimRight_n(", ");
+ m_sForwardedIP = sLine.Token(1).TrimRight_n(",");
} else if (sName.Equals("If-None-Match:")) {
// this is for proper client cache support (HTTP 304) on static files:
m_sIfNoneMatch = sLine.Token(1, true);
Please sign in to comment.
Something went wrong with that request. Please try again.