LukeMathWalker / LukeMathWalker/wiremock-rs

Comma in header value

Open
#144 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.