Skip to content

Fix incorrect header filtering

Fix incorrect header filtering

In passthrough mode (DontCache in config) duplicate Host header is sent to server which results in 400 Bad Request response from nginx. This happens due to incorrect string comparison. When string_view is created from .data() it searches for \0 and ignores original size. Fixes salsa issue #14 and (to some extent) debian bug 1023388 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023388)

Edited by Pavel Shramov

Merge request reports

Loading