mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
Serve the root and susie even if the query does not have an Accept header.
This commit is contained in:
parent
0644518fd5
commit
bc5b881c94
1 changed files with 0 additions and 4 deletions
4
httpd.c
4
httpd.c
|
@ -28,10 +28,6 @@ int server_get_handler(d_char *req, char *q_path,
|
||||||
/* basic server services */
|
/* basic server services */
|
||||||
{
|
{
|
||||||
int status = 0;
|
int status = 0;
|
||||||
char *acpt = xs_dict_get(req, "accept");
|
|
||||||
|
|
||||||
if (acpt == NULL)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
/* is it the server root? */
|
/* is it the server root? */
|
||||||
if (*q_path == '\0') {
|
if (*q_path == '\0') {
|
||||||
|
|
Loading…
Reference in a new issue