mirror of https://git.kore.io/kore.git
Change logic for http_version a bit.
This commit is contained in:
parent
29eb5b1537
commit
96d1396df1
|
@ -67,8 +67,8 @@ kore_accesslog(struct http_request *req)
|
||||||
size_t avail;
|
size_t avail;
|
||||||
time_t curtime;
|
time_t curtime;
|
||||||
int len, attempts;
|
int len, attempts;
|
||||||
const char *ptr, *method, *http_version, *cn, *referer;
|
|
||||||
char addr[INET6_ADDRSTRLEN], *cn_value;
|
char addr[INET6_ADDRSTRLEN], *cn_value;
|
||||||
|
const char *ptr, *method, *http_version, *cn, *referer;
|
||||||
|
|
||||||
switch (req->method) {
|
switch (req->method) {
|
||||||
case HTTP_METHOD_GET:
|
case HTTP_METHOD_GET:
|
||||||
|
@ -96,8 +96,7 @@ kore_accesslog(struct http_request *req)
|
||||||
|
|
||||||
if (req->flags & HTTP_VERSION_1_0)
|
if (req->flags & HTTP_VERSION_1_0)
|
||||||
http_version = "HTTP/1.0";
|
http_version = "HTTP/1.0";
|
||||||
|
else
|
||||||
if (req->flags & HTTP_VERSION_1_1)
|
|
||||||
http_version = "HTTP/1.1";
|
http_version = "HTTP/1.1";
|
||||||
|
|
||||||
if (req->referer != NULL)
|
if (req->referer != NULL)
|
||||||
|
|
Loading…
Reference in New Issue