Merge Vary header
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Start by reproducing the provided ServiceBuilder stack with CorsLayer and CompressionLayer, then inspect the resulting response headers. Trace how each layer writes Vary and review the issue discussion for the intended behavior; done means the expected merging or separate-header behavior is established and covered by an appropriate test.
Written by the indexing model from the issue text.
Description
Is this okay Vary header don't merge with Vary header from response (other layers)? each layer should add Vary header?
Here layers
let middleware_stack = ServiceBuilder::new()
.layer(
CorsLayer::new()
.allow_origin(AllowOrigin::list(vec![
"http://test.com".parse::<HeaderValue>().unwrap(),
"http://example.com".parse::<HeaderValue>().unwrap(),
]))
.allow_methods([Method::GET, Method::POST])
)
.layer(
CompressionLayer::new()
.quality(CompressionLevel::Best)
);
Here resposne
HTTP/1.1 200 OK
content-type: application/json
vary: origin, access-control-request-method, access-control-request-headers
vary: accept-encoding
content-length: 109
date: Wed, 05 Feb 2025 17:45:27 GMT
- Dominant language
- Rust
- Stars
- 913
- Forks
- 231
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 8
Contributor guide
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.
More from tower-rs/tower-http
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
tower-rs/tower-http#737 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
tower-rs/tower-http#732 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
tower-rs/tower-http#731 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
tower-rs/tower-http#701 · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
tower-rs/tower-http#657 · 12 comments · 1 reaction ·
All issues in tower-rs/tower-http
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100