Преглед на файлове

add http status code 201 to show the right status message in return headers (#402)

SoenkeHeeren преди 5 години
родител
ревизия
ced4160d05
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      httplib.h

+ 1 - 0
httplib.h

@@ -1599,6 +1599,7 @@ inline const char *status_message(int status) {
   switch (status) {
   case 100: return "Continue";
   case 200: return "OK";
+  case 201: return "Created";
   case 202: return "Accepted";
   case 204: return "No Content";
   case 206: return "Partial Content";