On Wed, Apr 14, 2021 at 07:14:30PM +0200, Tim Duesterhus wrote:
> > You can pass a pointer on dst. In the normalizer, you can update its 
> > size. It is thus possible to use dst when calling 
> > http_replace_req_path() or http_replace_req_query().
> > 
> 
> I see, that makes sense to me. I thought of the size being the current length
> of the ist and did not think of simply resetting it to 0 before starting the
> processing.
> 
> Here's a preparation patch to the ist library, allowing this pattern to be
> cleanly implemented. I've already incorporated it into my local normalization
> branch, but I'd like to implement the remaining feedback before sending a new
> series for it.

I like it. I thought we already had something to reset an ist that we
could repurpose, but no, right now resets are done by assigning so there
was nothing to do that yet.

Now applied, thanks!
Willy

Reply via email to