Makes the flask decorator actually work
Handles a missing Accept header