Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/xb-builder-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ xb_builder_source_get_istream(XbBuilderSource *self, GCancellable *cancellable,
g_debug("detected content type of %s to be %s", basename, content_type);
if (content_type == NULL)
return NULL;
if (g_strcmp0(content_type, "application/xml") == 0)
if (g_content_type_is_a(content_type, "application/xml"))
break;
/* Also accept the text/xml alias, just in case the user’s content-type database is
* slightly broken (application/xml should normally be what’s used): */
Expand Down