Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Knupp committed May 1, 2014
1 parent fd14189 commit bf09e7b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sandman/sandman.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ def _get_acceptable_response_type():
# HTTP 406 Not Acceptable
raise InvalidAPIUsage(406)

@app.after_request
def after_request(response):
if hasattr(g, 'headers'):
response.headers.extend(g.headers)
return response

@app.errorhandler(InvalidAPIUsage)
def handle_exception(error):
"""Return a response with the appropriate status code, message, and content
Expand Down

0 comments on commit bf09e7b

Please sign in to comment.