summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Linehan <patientulysses@gmail.com>2012-06-18 14:13:42 -0400
committerJason Linehan <patientulysses@gmail.com>2012-06-18 14:13:42 -0400
commitb00dd25a17cadeb99ddc81eedf99c9a2a7050949 (patch)
tree54cae446a7743898fe1afeacd514f4b86307626b
parent78283314f00abf451cf44d1761db9c76f5457e79 (diff)
downloadcloth-b00dd25a17cadeb99ddc81eedf99c9a2a7050949.tar.gz
cloth-b00dd25a17cadeb99ddc81eedf99c9a2a7050949.tar.bz2
cloth-b00dd25a17cadeb99ddc81eedf99c9a2a7050949.zip
Removed HTTP versionHEADmaster
-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)