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

[fix] adapter-netlify: encode UInt8Array response bodies as base64 #2630

Merged
merged 2 commits into from
Oct 20, 2021
Merged

[fix] adapter-netlify: encode UInt8Array response bodies as base64 #2630

merged 2 commits into from
Oct 20, 2021

Commits on Oct 19, 2021

  1. [fix] encode UInt8Array response bodies as base64

    If an endpoint returns a UInt8Array body (e.g. for binary content), the
    function handler will fail as a Netlify function response body needs to
    be either a string or base64 encoded.
    
    Let's encode UInt8Array response bodies as base64 so that endpoints
    returning UInt8Arrays function properly with the Netlify adapter.
    Xenonym committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    95f64b0 View commit details
    Browse the repository at this point in the history
  2. [chore] snake case splitHeaders

    splitHeaders is an internal variable, so it should be snake_cased.
    Xenonym committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    d1acf08 View commit details
    Browse the repository at this point in the history