зеркало из https://github.com/mozilla/gecko-dev.git
15296 r=gagan. Added .txt extension to the MIME type extension resolver.
This commit is contained in:
Родитель
7e2a55ff0e
Коммит
e0f2c7fad2
|
@ -106,6 +106,10 @@ nsresult
|
|||
nsMIMEService::InitFromHack() {
|
||||
nsresult rv;
|
||||
|
||||
rv = AddMapping("text/plain", "txt", "Text File");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = AddMapping("text/plain", "text", "Text File");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = AddMapping("application/octet-stream", "exe", "Binary Executable");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = AddMapping("application/octet-stream", "bin", "Binary Executable");
|
||||
|
|
Загрузка…
Ссылка в новой задаче