openresty / openresty/headers-more-nginx-module
more_set_headers and manipulating single cookie
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.8k
- Forks
- 236
- Avg merge
- 1h 34m
- Merged PRs (30d)
- 2
Description
@agentzh
I'm trying to solve a problem and this module is very close to intended workaround.
Backend app sets number of cookies and I need to alter value of a cookie in certain circumstances.
When I do:
more_set_headers "Set-Cookie: target-cookie=myvalue";
It does changes target-cookie's value but it removes other "Set-cookie" header from output.
My intention is to change value for target-cookie only without touching other cookies.
May I know is there any workaround for this? Or this can rectified by patching module itself?
Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the configuration from the issue with multiple Set-Cookie headers and observe how more_set_headers handles them. Done means changing target-cookie while preserving every other cookie; the issue names no source file or test, so locating the relevant header-processing entry point and adding coverage will require repository research.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, nginx
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100