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

Allow strict checks for Content-* headers #66

Commits on May 17, 2021

  1. fix: allow strict checks for Content-* headers

    Previously, we would check any key starting with `CONTENT_` in the `$_SERVER` array, and treat it as a header.
    However, per laminas#63, this is incorrect, and we should only look for `CONTENT_TYPE`, `CONTENT_LENGTH`, and `CONTENT_MD5`.
    To keep backwards compatibility, this patch implements a switch, using the ENV variable LAMINAS_DIACTOROS_STRICT_CONTENT_HEADER_LOOKUP.
    When this value is found in `$_SERVER` (which aggregates ENV variables as well), the logic for identifying headers in the `$_SERVER` array will become strict.
    
    For version 3.0, we will make the strict lookup the default.
    
    Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
    weierophinney committed May 17, 2021
    Configuration menu
    Copy the full SHA
    1e89a68 View commit details
    Browse the repository at this point in the history
  2. docs: fix linting error

    Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
    weierophinney committed May 17, 2021
    Configuration menu
    Copy the full SHA
    b8d2371 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2021

  1. feat: make inline closure declarations static

    Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
    weierophinney committed May 18, 2021
    Configuration menu
    Copy the full SHA
    e3d81bd View commit details
    Browse the repository at this point in the history
  2. Update docs/book/v1/emitting-responses.md

    Signed-Off-By: <matthew@weierophinney.net>
    
    Co-authored-by: Frank Brückner <info@froschdesignstudio.de>
    weierophinney and froschdesign authored May 18, 2021
    Configuration menu
    Copy the full SHA
    e7aaaf8 View commit details
    Browse the repository at this point in the history