-
Notifications
You must be signed in to change notification settings - Fork 8.3k
HTTP request with an empty header value results in bad request response #23901
Description
Clicktail installed from provided .deb package (version 1.0.20180402) generates HTTP requests like:
POST /?query=INSERT+INTO+clicktail.apache_log+FORMAT+JSONEachRow HTTP/1.1
Host: XXX:8123
User-Agent: libclick-go/1.4.0 clicktail/dev (regex)
Content-Length: 2425
Authorization: Basic XXX
Content-Encoding: gzip
Content-Type: application/json
X-Honeycomb-Team:
Accept-Encoding: gzip
Header X-Honeycomb-Team contains only space before terminal characters:
58 2d 48 6f 6e 65 79 63 6f 6d 62 2d 54 65 61 6d 3a 20 0d 0a
Clickhouse server 21.4.5.46 doesn't accept those requests and returns:
HTTP/1.1 400 Bad Request
There is no requirement in RFC 7230 https://tools.ietf.org/html/rfc7230#section-3.2 for field-value to contains any data. Shouldn't be those requests accepted?