If g_content_type_guess is certain, stop early.

This commit is contained in:
Sebastian Ramacher 2012-03-22 16:28:36 +01:00
parent 9c334cc6a6
commit 1dd2430554

View file

@ -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;