Allow partial path

Hi,

I wanted to use a blanket path, like /api/v1 so that every request to that path will have it's cookies stripped. I had to make a change to the code to allow that.