Skip to content

Commit

Permalink
Fix header parser comparator (#6598)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtropets authored Oct 29, 2024
1 parent d45f699 commit 9131061
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/http/http_accept.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ namespace http

// Spec says these mime types are now equivalent. For stability, we
// order them lexicographically
return mime_type < other.mime_type && mime_subtype < other.mime_subtype;
if (mime_type != other.mime_type)
{
return mime_type < other.mime_type;
}
return mime_subtype < other.mime_subtype;
}
};

Expand Down

0 comments on commit 9131061

Please sign in to comment.