Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep underscores when normalizing headers #964

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 5, 2022

  1. Keep underscores when normalizing headers

    Some servers distinguish underscores from dashes in request headers. To
    allow users to test that the correct character is used, checking the
    sent headers should make the same distinction.
    
    With this change, webmock no longer normalizes underscores to dashes for
    headers defined using strings.
    
    Since symbols are commonly used with underscores to specify headers that
    use dashes, headers specified with symbol keys are still normalized to
    dashes.
    mvz committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    c59edb1 View commit details
    Browse the repository at this point in the history