Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2019-06-25 09:51:20 +0300
committereidheim <eidheim@gmail.com>2019-06-25 09:51:20 +0300
commit981e9d49506d3fd26ac7dbb83c1790ca36b1dfb7 (patch)
tree9fe5d5eeb80d3fccf5e20878db8f173ccbc11ccc
parent65f773b21d9ef606d32ba1d81c35e561f3361495 (diff)
Updated utility.hpp
-rw-r--r--utility.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility.hpp b/utility.hpp
index d98ed41..9880822 100644
--- a/utility.hpp
+++ b/utility.hpp
@@ -283,7 +283,7 @@ namespace SimpleWeb {
else
return false;
if((version_end + 1) < line.size())
- status_code = line.substr(version_end + 1, line.size() - (version_end + 1) - 1);
+ status_code = line.substr(version_end + 1, line.size() - (version_end + 1) - (line.back() == '\r' ? 1 : 0));
else
return false;