]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: add full-length header fetch methods
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Jun 2013 16:39:42 +0000 (18:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Jun 2013 16:39:42 +0000 (18:39 +0200)
commit04ff9f105f441a4542456b47d17abe0a006917cf
treefb8def3fbf0fc0d4251c9d868c8ce3b099471cc5
parent570f221cbb57566a448d29647813f4f98b68ba53
MINOR: http: add full-length header fetch methods

The req.hdr and res.hdr fetch methods do not work well on headers which
are allowed to contain commas, such as User-Agent, Date or Expires.
More specifically, full-length matching is impossible if a comma is
present.

This patch introduces 4 new fetch functions which are designed to work
with these full-length headers :
  - req.fhdr, req.fhdr_cnt
  - res.fhdr, res.fhdr_cnt

These ones do not stop at commas and permit to return full-length header
values.
doc/configuration.txt
include/proto/proto_http.h
src/proto_http.c