瀏覽代碼

Add fake HTTP status error 399 to http_status_text().

default 2 月之前
父節點
當前提交
3844bbf04f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      snac.c

+ 1 - 0
snac.c

@@ -181,6 +181,7 @@ const char *http_status_text(int status)
 /* translate status codes to canonical status texts */
 {
     switch (status) {
+        case 399: return "Timeout";
 #define HTTP_STATUS(code, name, text) case HTTP_STATUS_ ## name: return #text;
 #include "http_codes.h"
 #undef HTTP_STATUS