LukeMathWalker / LukeMathWalker/wiremock-rs
Comma in header value
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 799
- Forks
- 91
- PR merge metrics
- No merged PRs in 30d
Description
Hi here,
Good morning.
I am using 0.6.0 version.
I setup a mock for an http call with an header that looks like
`.and(header("x-ms-date", "Sun, 01 Jan 2023 00:00:00 GMT"))`
There should be some bug in the handling of the commas, since that value will not be matched.
Intead, the following without a comma works well
`.and(header("x-ms-date", "Sun 01 Jan 2023 00:00:00 GMT"))`
Best regards,
R
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 issue with the shown x-ms-date header value and compare it with the comma-free value. Trace the header-matching behavior and add coverage for the comma-containing date; done means the mock matches both header values as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100