зеркало из https://github.com/mozilla/pjs.git
15296 r=gagan. Added .txt extension to the MIME type extension resolver.
This commit is contained in:
Родитель
890d074ae3
Коммит
1227c3aa42
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче