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

Update BINARY_SUPPORT to use Content-Encoding to identify if data is binary #2170

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Commits on Jun 14, 2020

  1. fix deploy with --no_venv

    jneves committed Jun 14, 2020
    Configuration menu
    Copy the full SHA
    1a51f2e View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. fix typo

    jneves committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    0adb704 View commit details
    Browse the repository at this point in the history
  2. vargs might not be there

    jneves committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    5923b0e View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2020

  1. Use Content-Encoding to identify if data is binary

    When using _whitenoise_ for caching, which provides compression, binary types may include mimetypes, "text/", "application/json":
    
    - response.mimetype.startswith("text/")
    - response.mimetype == "application/json"
    
    Assuming that Content-Encoding will be set (as whitenoise apparently does) this allows compression to be applied by the application for "text/" and "application/json".
    
    About Content-Encoding:
    https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
    monkut committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    cd745c8 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from monkut/supportbinary-with-contentencoding

    Use Content-Encoding to identify if data is binary
    monkut committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    b53ccb1 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2020

  1. 0.52.0 release

    jneves committed Oct 2, 2020
    5 Configuration menu
    Copy the full SHA
    7f156ae View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2021

  1. Update to handle error cases

    Include fallbacks for cases:
    - try binary, fail to text
    - try text, fail to binary
    monkut committed Jan 28, 2021
    Configuration menu
    Copy the full SHA
    6c66a6c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea8f436 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    197c906 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    32293f9 View commit details
    Browse the repository at this point in the history
  5. 🔀 merge with Miserlou/Zappa 0.52.0

    🔧 clean-up BINARY_SUPPORT handling
    monkut committed Jan 28, 2021
    Configuration menu
    Copy the full SHA
    14658ce View commit details
    Browse the repository at this point in the history