Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit bbe7503

Browse files
authored
Merge pull request #5 from simonwoerpel/types/xml
Change default xml type to application/xml according to RFC 7303
2 parents ac57714 + cfbc051 commit bbe7503

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pantomime/mappings.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Dict
22
from pantomime.types import DEFAULT, PLAIN, DIRECTORY
3-
from pantomime.types import EXCEL, PDF, CSV, RTF, PSD, WORD
3+
from pantomime.types import EXCEL, PDF, CSV, RTF, PSD, WORD, XML
44
from pantomime.types import RAR, ZIP, GZIP, TIFF, JPEG
55

66
REPLACE: Dict[str, str] = {
@@ -18,6 +18,8 @@
1818
"*/*": DEFAULT,
1919
# CSV
2020
"application/csv": CSV,
21+
# XML
22+
"text/xml": XML,
2123
# Plain
2224
"plain/text": PLAIN,
2325
"text/text": PLAIN,

pantomime/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
DOCX = "application/vnd.openxmlformats-officedocument.wordprocessing"
1414
CSV = "text/csv"
1515
RTF = "text/rtf"
16-
XML = "text/xml"
16+
XML = "application/xml"
1717
PSD = "image/vnd.adobe.photoshop"
1818
RAR = "application/rar"
1919
ZIP = "application/zip"

0 commit comments

Comments
 (0)