Change logic for http_version a bit.

This commit is contained in:
Joris Vink 2022-02-20 21:19:44 +01:00
parent 29eb5b1537
commit 96d1396df1
1 changed files with 2 additions and 3 deletions

View File

@ -67,8 +67,8 @@ kore_accesslog(struct http_request *req)
size_t avail;
time_t curtime;
int len, attempts;
const char *ptr, *method, *http_version, *cn, *referer;
char addr[INET6_ADDRSTRLEN], *cn_value;
const char *ptr, *method, *http_version, *cn, *referer;
switch (req->method) {
case HTTP_METHOD_GET:
@ -96,8 +96,7 @@ kore_accesslog(struct http_request *req)
if (req->flags & HTTP_VERSION_1_0)
http_version = "HTTP/1.0";
if (req->flags & HTTP_VERSION_1_1)
else
http_version = "HTTP/1.1";
if (req->referer != NULL)