diff options
| author | 2022-11-18 19:44:43 +0100 | |
|---|---|---|
| committer | 2022-11-18 19:44:43 +0100 | |
| commit | bc5b881c944c501ce34c192d9853377e765385fc (patch) | |
| tree | aa9ca001a7d292efdc49792515c7a31b748decf6 /httpd.c | |
| parent | Version 2.11 RELEASED. (diff) | |
| download | snac2-bc5b881c944c501ce34c192d9853377e765385fc.tar.gz snac2-bc5b881c944c501ce34c192d9853377e765385fc.tar.xz snac2-bc5b881c944c501ce34c192d9853377e765385fc.zip | |
Serve the root and susie even if the query does not have an Accept header.
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 4 |
1 files changed, 0 insertions, 4 deletions
| @@ -28,10 +28,6 @@ int server_get_handler(d_char *req, char *q_path, | |||
| 28 | /* basic server services */ | 28 | /* basic server services */ |
| 29 | { | 29 | { |
| 30 | int status = 0; | 30 | int status = 0; |
| 31 | char *acpt = xs_dict_get(req, "accept"); | ||
| 32 | |||
| 33 | if (acpt == NULL) | ||
| 34 | return 0; | ||
| 35 | 31 | ||
| 36 | /* is it the server root? */ | 32 | /* is it the server root? */ |
| 37 | if (*q_path == '\0') { | 33 | if (*q_path == '\0') { |