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

Lowercasing request headers #34

Merged
merged 2 commits into from
Feb 15, 2022

Commits on Feb 15, 2022

  1. feat: utility to lowercase object properties

    refs antongolub#33
    
    - Adds utility that will help mimicing lowercasing of headers like it's done in express' Request object
    - Code heavily inspired by https://github.com/howardabrams/node-mocks-http/blob/a0ad193459c102069a9b7de386f16ebf59cab6e0/lib/utils.js#L3-L9
    naz committed Feb 15, 2022
    Configuration menu
    Copy the full SHA
    3cc79c9 View commit details
    Browse the repository at this point in the history
  2. fix: lowercasing incoming request headers

    closes antongolub#33
    
    - Makes sure incoming header options are always lowercased. This behavior would be the same as in original express request.
    naz committed Feb 15, 2022
    Configuration menu
    Copy the full SHA
    5473ddc View commit details
    Browse the repository at this point in the history