[PATCH] Normalizing the Host: header
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Mar 11 23:39:24 CET 2011
In message <4D7A7A4F.3030109 at schokola.de>, Nils Goroll writes:
>can we come to a conclusion of this discussion?
What bothers me is the "magic" aspect of this kind of stuff.
Where does the magic intuitively begin and end ?
Should we also case fold anything compared to or matched to the
host header ?
What about host part of Location headers ?
Where does the magic end ?
I very much prefer to make these things explict and consistent,
so that people see them happen and know where they happen.
... but I also don't want to clutter up default.vcl with "mandatory stuff".
>- case-folding once in-place does not use any additional session space
> as case-folding in VCL would
In my mind, this is probably the best argument for doing it,
I am just not sure it convinces me.
Next issue which comes right behind is: Should we also
normalize URL's by reducing pointless %xx and other escapes ?
Are there any other kinds of request normalization we should do ?
And should we also normalize backend responses ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-dev
mailing list