Added logic to account for accept header with blank value