summaryrefslogtreecommitdiffhomepage
path: root/src/conf.h
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-16 01:25:59 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-16 02:39:09 +0100
commite929e81a55241b63d8921c071806195eae91ab91 (patch)
treec52b4412b57866fe328222d426ef9a3241158ce6 /src/conf.h
parent7d33fc8e8a8802f8962f612510d252bbbe465757 (diff)
add_header: use sblist
note that the old code inserted added headers at the beginning of the list, reasoning unknown. this seems counter-intuitive as the headers would end up in the request in the reverse order they were added, but this was irrelevant, as the headers were originally first put into the hashmap hashofheaders before sending it to the client. since the hashmap didn't preserve ordering, the headers would appear in random order anyway.
Diffstat (limited to 'src/conf.h')
-rw-r--r--src/conf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf.h b/src/conf.h
index 128d0d2..3ed774b 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -110,7 +110,7 @@ struct config_s {
/*
* Extra headers to be added to outgoing HTTP requests.
*/
- vector_t add_headers;
+ sblist* add_headers;
};
extern int reload_config_file (const char *config_fname, struct config_s *conf);