Skip to content

Commit 9131061

Browse files
authored
Fix header parser comparator (#6598)
1 parent d45f699 commit 9131061

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/http/http_accept.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ namespace http
7070

7171
// Spec says these mime types are now equivalent. For stability, we
7272
// order them lexicographically
73-
return mime_type < other.mime_type && mime_subtype < other.mime_subtype;
73+
if (mime_type != other.mime_type)
74+
{
75+
return mime_type < other.mime_type;
76+
}
77+
return mime_subtype < other.mime_subtype;
7478
}
7579
};
7680

0 commit comments

Comments
 (0)