Fix bug stemming from swagger not sending Accept header

This was fixed in a more recent version of swagger; the problem
was only visible on firefox, whose default accept header is
slightly different from Chrome's.