Fix Accept header retrieval