aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow/http_connection.h
diff options
context:
space:
mode:
authorJaeseung Ha <ipknhama@gmail.com>2017-09-18 00:43:42 +0900
committerGitHub <noreply@github.com>2017-09-18 00:43:42 +0900
commit08acc7c0bedc24bf5b8c6cc01f1701b0d45e141e (patch)
tree77aa4aa0f2cbfd139dc3194a3cf113ed2100454f /include/crow/http_connection.h
parente40605da59e368be524dee0e9e9d41ef05149473 (diff)
parent194a9ef6812e3d5476419e33be2756ab69fc0696 (diff)
downloadcrow-08acc7c0bedc24bf5b8c6cc01f1701b0d45e141e.tar.gz
crow-08acc7c0bedc24bf5b8c6cc01f1701b0d45e141e.zip
Merge branch 'master' into master
Diffstat (limited to 'include/crow/http_connection.h')
-rw-r--r--include/crow/http_connection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/crow/http_connection.h b/include/crow/http_connection.h
index 96f2d14..1537d17 100644
--- a/include/crow/http_connection.h
+++ b/include/crow/http_connection.h
@@ -176,7 +176,7 @@ namespace crow
}
#ifdef CROW_ENABLE_DEBUG
- static int connectionCount;
+ static std::atomic<int> connectionCount;
#endif
template <typename Adaptor, typename Handler, typename ... Middlewares>
class Connection
@@ -374,6 +374,7 @@ namespace crow
{401, "HTTP/1.1 401 Unauthorized\r\n"},
{403, "HTTP/1.1 403 Forbidden\r\n"},
{404, "HTTP/1.1 404 Not Found\r\n"},
+ {422, "HTTP/1.1 422 Unprocessable Entity\r\n"},
{500, "HTTP/1.1 500 Internal Server Error\r\n"},
{501, "HTTP/1.1 501 Not Implemented\r\n"},