commit 6ac15d37cb418c9c2959e41b9f7deea76d5ec386
parent c3401fe3487b7cb4d6f9ced4112c2180ca8cbe42
Author: Joris Vink <joris@coders.se>
Date: Thu, 10 Dec 2015 09:25:22 +0100
Make sure user agent is still set properly.
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/http.c b/src/http.c
@@ -169,9 +169,6 @@ http_request_new(struct connection *c, const char *host,
TAILQ_INIT(&(req->arguments));
TAILQ_INIT(&(req->files));
- if (!http_request_header(req, "user-agent", &(req->agent)))
- req->agent = "unknown";
-
#if defined(KORE_USE_TASKS)
LIST_INIT(&(req->tasks));
#endif