paragonie / csp-builder

Build Content-Security-Policy headers from a JSON file (or build them programmatically)
https://paragonie.com/projects
MIT License
544 stars 39 forks source link

Add support for `psr/http-message` v2 #73

Closed internalsystemerror closed 1 year ago

internalsystemerror commented 1 year ago

This PR adds support for psr/http-message v2. No changes to code or tests are necessary as the primary change is that getBody now returns a StreamInterface instead of a string. Since this package only touches the headers, support for v2 requires no additional changes.

paragonie-security commented 1 year ago

Thanks! We'll cut a release with this change ASAP.