commit | 211cdece7963c956d2f9447f9ae1eddd96fc497d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Apr 17 20:18:08 2014 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Apr 22 23:15:28 2014 +0200 |
tree | 3840a4ed26bb6a7158b7dfedb4acf1243a1ee51b | |
parent | 2d8e485a7c299faf08e8ba7cb73af51fc5ca182e [diff] |
MEDIUM: http: add a small helper to compute how far to rewind to find headers http_hdr_rewind() returns the number of bytes to rewind before buf->p to find the beginning of headers. At the moment it's not exact as it still relies on buf->o, assuming that no other data from a past message were pending there, but it's what was done till there. The purpose is to centralize further ->sov changes aiming at avoiding to rely on buf->o.