summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
authorGravatar shtrophic2025-02-17 20:54:36 +0100
committerGravatar shtrophic2025-02-17 20:54:36 +0100
commit7eb2556f26baf8ff79fcb7388712d8b714efc4f6 (patch)
tree0d11017b6431c514bd6afd16138a06851cd2f09e /snac.c
parentMerge tag '2.72' into curl-smtp (diff)
parentMerge pull request 'doc/snac8: elaborate regex blocking' (#305) from Menelmac... (diff)
downloadsnac2-7eb2556f26baf8ff79fcb7388712d8b714efc4f6.tar.gz
snac2-7eb2556f26baf8ff79fcb7388712d8b714efc4f6.tar.xz
snac2-7eb2556f26baf8ff79fcb7388712d8b714efc4f6.zip
Merge remote-tracking branch 'upstream/master' into curl-smtp
Diffstat (limited to 'snac.c')
-rw-r--r--snac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/snac.c b/snac.c
index 9f5b50e..4e5aaba 100644
--- a/snac.c
+++ b/snac.c
@@ -24,6 +24,7 @@
24#include "xs_match.h" 24#include "xs_match.h"
25#include "xs_fcgi.h" 25#include "xs_fcgi.h"
26#include "xs_html.h" 26#include "xs_html.h"
27#include "xs_po.h"
27 28
28#include "snac.h" 29#include "snac.h"
29 30
@@ -34,6 +35,7 @@ xs_str *srv_basedir = NULL;
34xs_dict *srv_config = NULL; 35xs_dict *srv_config = NULL;
35xs_str *srv_baseurl = NULL; 36xs_str *srv_baseurl = NULL;
36xs_str *srv_proxy_token_seed = NULL; 37xs_str *srv_proxy_token_seed = NULL;
38xs_dict *srv_langs = NULL;
37 39
38int dbglevel = 0; 40int dbglevel = 0;
39 41
@@ -179,6 +181,7 @@ const char *http_status_text(int status)
179/* translate status codes to canonical status texts */ 181/* translate status codes to canonical status texts */
180{ 182{
181 switch (status) { 183 switch (status) {
184 case 399: return "Timeout";
182#define HTTP_STATUS(code, name, text) case HTTP_STATUS_ ## name: return #text; 185#define HTTP_STATUS(code, name, text) case HTTP_STATUS_ ## name: return #text;
183#include "http_codes.h" 186#include "http_codes.h"
184#undef HTTP_STATUS 187#undef HTTP_STATUS