Index: pdf/document_loader.cc |
diff --git a/pdf/document_loader.cc b/pdf/document_loader.cc |
index f696656058eb889c7fe73240892f1f07d0c557a7..28a6ee4ebd74dfc643fd49759ddde124f7847d0b 100644 |
--- a/pdf/document_loader.cc |
+++ b/pdf/document_loader.cc |
@@ -68,12 +68,15 @@ std::string GetMultiPartBoundary(const std::string& headers) { |
} |
bool IsValidContentType(const std::string& type) { |
- return (base::EndsWith(type, "/pdf", false) || |
- base::EndsWith(type, ".pdf", false) || |
- base::EndsWith(type, "/x-pdf", false) || |
- base::EndsWith(type, "/*", false) || |
- base::EndsWith(type, "/acrobat", false) || |
- base::EndsWith(type, "/unknown", false)); |
+ return (base::EndsWith(type, "/pdf", base::CompareCase::INSENSITIVE_ASCII) || |
+ base::EndsWith(type, ".pdf", base::CompareCase::INSENSITIVE_ASCII) || |
+ base::EndsWith(type, "/x-pdf", |
+ base::CompareCase::INSENSITIVE_ASCII) || |
+ base::EndsWith(type, "/*", base::CompareCase::INSENSITIVE_ASCII) || |
+ base::EndsWith(type, "/acrobat", |
+ base::CompareCase::INSENSITIVE_ASCII) || |
+ base::EndsWith(type, "/unknown", |
+ base::CompareCase::INSENSITIVE_ASCII)); |
} |
} // namespace |