Skip to content

Instantly share code, notes, and snippets.

@hacosta
Created July 2, 2013 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hacosta/5913671 to your computer and use it in GitHub Desktop.
Save hacosta/5913671 to your computer and use it in GitHub Desktop.
#!/usr/bin/python2
import flask
app = flask.Flask(__name__)
@app.route('/')
def hello_world():
r = flask.Response(status=304)
r.headers['foo'] = 'bar'
return r
if __name__ == '__main__':
app.run(debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment