summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-04 12:02:57 +0200
committerMattes D <github@xoft.cz>2014-08-04 12:02:57 +0200
commit7b986e65d2b7d7cad6768599ba4298b62b16c35f (patch)
treedd627e5e467d4bf0f3ed47aa1201b6ab94e9c35a /src/HTTPServer
parentMerge pull request #1283 from Howaner/GlobalFixes (diff)
parentRefactored case-conversion functions. (diff)
downloadcuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.gz
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.bz2
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.lz
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.xz
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.zst
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.zip
Diffstat (limited to 'src/HTTPServer')
-rw-r--r--src/HTTPServer/HTTPMessage.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/HTTPServer/HTTPMessage.cpp b/src/HTTPServer/HTTPMessage.cpp
index 4226352e9..65d73fd87 100644
--- a/src/HTTPServer/HTTPMessage.cpp
+++ b/src/HTTPServer/HTTPMessage.cpp
@@ -35,8 +35,7 @@ cHTTPMessage::cHTTPMessage(eKind a_Kind) :
void cHTTPMessage::AddHeader(const AString & a_Key, const AString & a_Value)
{
- AString Key = a_Key;
- StrToLower(Key);
+ AString Key = StrToLower(a_Key);
cNameValueMap::iterator itr = m_Headers.find(Key);
if (itr == m_Headers.end())
{