Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Add edit and parse_set_cookie functionality #35

Closed
wants to merge 1 commit into from

Conversation

RulerOf
Copy link

@RulerOf RulerOf commented Apr 2, 2020

Resolves #11

This pull request adds functionality to allow parsing and editing of outgoing Set-Cookie headers.

The parse_set_cookie function is basically the unbake() function requested in #11. It came from nmap, but was edited slightly for compatibility.

BuyerQuest is currently using this code for all production traffic. As you may be able to infer from the example in the README, we developed this to add SameSite cookie flag support to our application.

Given the list of outstanding PRs, I ask that you please confirm interest in merging these changes before I will spend the time to develop a proper test suite for the functionality.

@maurizioabba
Copy link
Member

Seeing this now. Assuming fine to close, please reopen if interested

@RulerOf
Copy link
Author

RulerOf commented May 3, 2023

Hi @maurizioabba.

Seeing this now. Assuming fine to close, please reopen if interested

This PR does add a significant new feature to the library. I don't really have any vested interest in whether or not this gets merged, but being able to capture and alter a set-cookie header in-flight after it's sent by the application inside of the reverse proxy is extremely useful and fits well with the rest of the functionality in this library IMO.

It's your call if you're interested in the functionality. #11 was never closed by any other PR.

At this point I would have trouble finding the time to write that test suite though.

@maurizioabba
Copy link
Member

Understood. Yes this can not be reviewed without tests. Keeping it closed for now, but if you or someone else will have time to provide appropriate testsuites, please reopen so that we can review.

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to get various cookie's attributes?
2 participants