[sr-dev] Config parser

Olle E. Johansson oej at edvina.net
Mon Mar 28 19:31:45 CEST 2016


Hi!

Http_client is using the cfg_parser.c core parser to parse the config file. In some cases I would like to set an empty string. Let’s say that I’ve set a default http proxy in modparams and wants to reset it to no proxy in the config file - in this case I would like to write


httpproxy=

on a line in the config file.

In this case I get 

 0(45371) ERROR: <core> [cfg_parser.c:891]: cfg_parse_str(): http_client.cfg:35:0: Invalid string value '
', a string expected.

Is there a way to allow an empty string?

/O
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2374 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160328/f36f5387/attachment.bin>


More information about the sr-dev mailing list