summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/log.c b/log.c
index 1377e7a..e8833b7 100644
--- a/log.c
+++ b/log.c
@@ -67,10 +67,10 @@ void sesinfo_http(struct ses_t *session, char *request)
token = strtok(NULL, "**"))
{
if (clean = field(token, "GET "), clean != NULL) {
- pumpf(&session->resource, "%s", clean);
- while (clean[i++] != ' ')
+ while (clean[++i] != ' ') // Remove HTTP/1.x
;
- clean[--i] = '\n';
+ clean[i] = '\0';
+ pumpf(&session->resource, "%s", clean);
}
if (clean = field(token, "Host: "), clean != NULL)