diff --git a/proto/http.c b/proto/http.c index 373e8785..ce314b32 100644 --- a/proto/http.c +++ b/proto/http.c @@ -50,7 +50,7 @@ static uint64_t http_add_uwsgi_header(struct wsgi_request *wsgi_req, char *hh, s if (buffer + keylen + hvlen + 2 + 2 >= watermark) { if (keylen <= 0xff && hvlen <= 0xff) { if (has_prefix) { - uwsgi_log("[WARNING] unable to add HTTP_%.*s=%.*s to uwsgi packet, consider increasing buffer size\n", keylen, hh, hvlen, hv); + uwsgi_log("[WARNING] unable to add HTTP_%.*s=%.*s to uwsgi packet, consider increasing buffer size\n", keylen - 5, hh, hvlen, hv); } else { uwsgi_log("[WARNING] unable to add %.*s=%.*s to uwsgi packet, consider increasing buffer size\n", keylen, hh, hvlen, hv);