summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-06-16 18:26:18 +0200
committerFelix Fietkau <nbd@nbd.name>2016-06-16 18:26:18 +0200
commit242401f544df790b1df7d12b3be5f5b429da091c (patch)
tree5b35d49454c21740bede1a4ebe05d3d889d4758b /file.c
parentfe01ef3f52adae9da38ef47926cd50974af5d6b7 (diff)
uhttpd: add support for adding arbitrary headers via handler scripts
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 12aa130..e801a9e 100644
--- a/file.c
+++ b/file.c
@@ -863,6 +863,7 @@ void uh_handle_request(struct client *cl)
char *url = blobmsg_data(blob_data(cl->hdr.head));
char *error_handler;
+ blob_buf_init(&cl->hdr_response, 0);
url = uh_handle_alias(url);
uh_handler_run(cl, &url, false);