Explorar o código

Add status message for 202 Accepted

Valentin Vanelslande %!s(int64=6) %!d(string=hai) anos
pai
achega
db27812198
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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) {
   switch (status) {
   case 200: return "OK";
+  case 202: return "Accepted";
   case 204: return "No Content";
   case 206: return "Partial Content";
   case 301: return "Moved Permanently";