Skip to content

Instantly share code, notes, and snippets.

@tooxie
Created March 21, 2013 17:10
Show Gist options
  • Save tooxie/5214747 to your computer and use it in GitHub Desktop.
Save tooxie/5214747 to your computer and use it in GitHub Desktop.
Browsers can't handle this
from flask import Flask, Response
app = Flask(__name__)
@app.route('/')
def index():
return Response('{}', headers={'content-encoding': 'gzip'})
if __name__ == '__main__':
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment