commit | df97447088ec931320fca6370cc360cb19a82a59 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Dec 28 02:44:01 2012 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Dec 28 02:46:36 2012 +0100 |
tree | 6b827bbdb9e4d8cb3cb13618f9cfbcd92c671706 | |
parent | 1a1e8072f9b7c04a02e3247e6feb8a09cad0bd67 [diff] |
BUG/MINOR: http: http-request add-header emits a corrupted header David BERARD reported that http-request add-header passes a \0 along with the header field, which of course is not appropriate. This is caused by build_logline() which sometimes returns the size with the trailing zero and sometimes can return an empty string. Let's fix this function instead of fixing the places where it's used.