浏览代码

Add status message for 202 Accepted

Valentin Vanelslande 6 年之前
父节点
当前提交
db27812198
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      httplib.h

+ 1 - 0
httplib.h

@@ -1556,6 +1556,7 @@ find_content_type(const std::string &path,
 inline const char *status_message(int status) {
 inline const char *status_message(int status) {
   switch (status) {
   switch (status) {
   case 200: return "OK";
   case 200: return "OK";
+  case 202: return "Accepted";
   case 204: return "No Content";
   case 204: return "No Content";
   case 206: return "Partial Content";
   case 206: return "Partial Content";
   case 301: return "Moved Permanently";
   case 301: return "Moved Permanently";