diff --git a/src/http/http_accept.h b/src/http/http_accept.h index 496f463353dc..f460b350d0fc 100644 --- a/src/http/http_accept.h +++ b/src/http/http_accept.h @@ -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; } };