Fixes bug when no Accept header is set