Fixing getAcceptHeader when it is specified for any value