Commit 1dd24305 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

If g_content_type_guess is certain, stop early.

parent 9c334cc6
......@@ -181,6 +181,10 @@ guess_type(const char* path)
return NULL;
}
if (uncertain == FALSE) {
return content_type;
}
FILE* f = fopen(path, "r");
if (f == NULL) {
return NULL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment