summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/request.c b/src/request.c
index 262a7c04..352c63c2 100644
--- a/src/request.c
+++ b/src/request.c
@@ -248,7 +248,7 @@ int http_request_host_normalize(buffer *b) {
return -1;
}
} /*(else ignore stray colon at string end)*/
- buffer_commit(b, (size_t)(colon - p)); /*(remove port str)*/
+ buffer_string_set_length(b, (size_t)(colon - p)); /*(remove port str)*/
}
if (light_isdigit(*p)) {