]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: optimize capture.req.method and capture.req.uri
authorWilliam Lallemand <wlallemand@exceliance.fr>
Tue, 4 Feb 2014 23:30:02 +0000 (00:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Feb 2014 10:26:50 +0000 (11:26 +0100)
commit96a7785429d8dfb3c0df4fb83a08fe5600dab440
tree06534b8e0082a04f9c275d28ab103f8ebc7eec13
parenta23ee3a2ea12bcb8244304d308b9f3fe69169fd8
MINOR: http: optimize capture.req.method and capture.req.uri

Useless strncpy were done in those two sample fetches, the
"struct chunk" allows us to dump the specified len.

The encode_string() in capture.req.uri was judged inappropriate and was
deleted.

The return type was fixed to SMP_T_CSTR.
src/proto_http.c