]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: fetches and converters can return an empty string in place of nil
authorThierry FOURNIER <tfournier@exceliance.fr>
Wed, 11 Mar 2015 19:13:36 +0000 (20:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2015 19:26:49 +0000 (20:26 +0100)
commit2694a1a3c82cb1bb4363650cfbda482f50201b5b
treed51d049bdca8011eab94b8803eb3b19dbfd3a64b
parent397826aedc75584e5a1f6e52a9ae4f2f4c1bd5a5
MINOR: lua: fetches and converters can return an empty string in place of nil

In some cases we don't want to known if a fetch or converter
fails. We just want a valid string. After this patch, we
have two sets of fetches and two sets of converters. There are:
txn.f, txn.sf, txn.c, txn.sc. The version prefixed by 's' always
returns strings for any type, and returns an empty string in the
error case or when the data are not available. This is particularly
useful when manipulating headers or cookies.
include/types/hlua.h
src/hlua.c