Check Accept-Header instead of Content-Type