Set-Cookie only when 'path' is matched

Issue #20 new
Lucas Ventura Carro created an issue

We can configure an upstream with:

sticky path=/mypath/ secure httponly;

And one could think that cookie will be set only if the request matches /mypath/. But in fact it is only for the cookie value, causing that a first request to /mypath/one returns the Set-Cookie, and a following request to /otherpath/two returns a new cookie for the previous path, which overrides the first cookie.

Comments (0)

  1. Log in to comment