summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
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