Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c654362

Browse files
committed
fix various invalid type entries
1 parent f7221a2 commit c654362

File tree

4 files changed

+37
-35
lines changed

4 files changed

+37
-35
lines changed

HISTORY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
unreleased
2+
==========
3+
4+
* Fix various invalid MIME type entries
5+
- `application/mbox+xml`
6+
- `application/oscp-response`
7+
- `application/vwg-multiplexed`
8+
- `audio/g721`
9+
110
1.4.0 / 2014-12-21
211
==================
312

db.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -547,12 +547,9 @@
547547
"source": "iana"
548548
},
549549
"application/mbox": {
550-
"source": "apache",
550+
"source": "iana",
551551
"extensions": ["mbox"]
552552
},
553-
"application/mbox+xml": {
554-
"source": "iana"
555-
},
556553
"application/media-policy-dataset+xml": {
557554
"source": "iana"
558555
},
@@ -661,7 +658,7 @@
661658
"source": "iana"
662659
},
663660
"application/ocsp-response": {
664-
"source": "apache"
661+
"source": "iana"
665662
},
666663
"application/octet-stream": {
667664
"source": "iana",
@@ -692,9 +689,6 @@
692689
"source": "apache",
693690
"extensions": ["onetoc","onetoc2","onetmp","onepkg"]
694691
},
695-
"application/oscp-response": {
696-
"source": "iana"
697-
},
698692
"application/oxps": {
699693
"source": "iana",
700694
"extensions": ["oxps"]
@@ -3310,7 +3304,7 @@
33103304
"extensions": ["ptid"]
33113305
},
33123306
"application/vnd.pwg-multiplexed": {
3313-
"source": "apache"
3307+
"source": "iana"
33143308
},
33153309
"application/vnd.pwg-xhtml-print+xml": {
33163310
"source": "iana"
@@ -3956,9 +3950,6 @@
39563950
"application/vq-rtcpxr": {
39573951
"source": "iana"
39583952
},
3959-
"application/vwg-multiplexed": {
3960-
"source": "iana"
3961-
},
39623953
"application/watcherinfo+xml": {
39633954
"source": "iana"
39643955
},
@@ -4705,14 +4696,11 @@
47054696
"audio/g719": {
47064697
"source": "iana"
47074698
},
4708-
"audio/g721": {
4709-
"source": "iana"
4710-
},
47114699
"audio/g722": {
47124700
"source": "iana"
47134701
},
47144702
"audio/g7221": {
4715-
"source": "apache"
4703+
"source": "iana"
47164704
},
47174705
"audio/g723": {
47184706
"source": "iana"

scripts/types.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ function addTemplateData(data) {
7070
console.log('template ' + data.template + ' not found')
7171
data.template = ref
7272
res = yield* cogent('http://www.iana.org/assignments/media-types/' + ref)
73+
74+
// replace the guessed mime
75+
if (res.statusCode === 200) {
76+
data.mime = data.template
77+
}
7378
}
7479

7580
if (res.statusCode === 404) {

src/iana.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@
863863
"template": "application/mbms-user-service-description+xml",
864864
"type": "application"
865865
},
866-
"application/mbox+xml": {
866+
"application/mbox": {
867867
"name": "mbox",
868868
"reference": "[RFC4155]",
869869
"template": "application/mbox",
@@ -1055,6 +1055,12 @@
10551055
"template": "application/ocsp-request",
10561056
"type": "application"
10571057
},
1058+
"application/ocsp-response": {
1059+
"name": "ocsp-response",
1060+
"reference": "[RFC6960]",
1061+
"template": "application/ocsp-response",
1062+
"type": "application"
1063+
},
10581064
"application/octet-stream": {
10591065
"name": "octet-stream",
10601066
"reference": "[RFC2045][RFC2046]",
@@ -1085,12 +1091,6 @@
10851091
"template": "application/ogg",
10861092
"type": "application"
10871093
},
1088-
"application/oscp-response": {
1089-
"name": "ocsp-response",
1090-
"reference": "[RFC6960]",
1091-
"template": "application/ocsp-response",
1092-
"type": "application"
1093-
},
10941094
"application/oxps": {
10951095
"name": "oxps",
10961096
"reference": "[Ecma_International_Helpdesk]",
@@ -5435,6 +5435,12 @@
54355435
"template": "application/vnd.pvi.ptid1",
54365436
"type": "application"
54375437
},
5438+
"application/vnd.pwg-multiplexed": {
5439+
"name": "vnd.pwg-multiplexed",
5440+
"reference": "[RFC3391]",
5441+
"template": "application/vnd.pwg-multiplexed",
5442+
"type": "application"
5443+
},
54385444
"application/vnd.pwg-xhtml-print+xml": {
54395445
"name": "vnd.pwg-xhtml-print+xml",
54405446
"reference": "[Don_Wright]",
@@ -6431,12 +6437,6 @@
64316437
"template": "application/vq-rtcpxr",
64326438
"type": "application"
64336439
},
6434-
"application/vwg-multiplexed": {
6435-
"name": "vnd.pwg-multiplexed",
6436-
"reference": "[RFC3391]",
6437-
"template": "application/vnd.pwg-multiplexed",
6438-
"type": "application"
6439-
},
64406440
"application/watcherinfo+xml": {
64416441
"name": "watcherinfo+xml",
64426442
"reference": "[RFC3858]",
@@ -6665,6 +6665,12 @@
66656665
"template": "audio/3gpp2",
66666666
"type": "audio"
66676667
},
6668+
"audio/G7221": {
6669+
"name": "G7221",
6670+
"reference": "[RFC5577]",
6671+
"template": "audio/G7221",
6672+
"type": "audio"
6673+
},
66686674
"audio/ac3": {
66696675
"name": "ac3",
66706676
"reference": "[RFC4184]",
@@ -6899,12 +6905,6 @@
68996905
"template": "audio/G719",
69006906
"type": "audio"
69016907
},
6902-
"audio/g721": {
6903-
"name": "G7221",
6904-
"reference": "[RFC5577]",
6905-
"template": "audio/G7221",
6906-
"type": "audio"
6907-
},
69086908
"audio/g722": {
69096909
"name": "G722",
69106910
"reference": "[RFC4856]",

0 commit comments

Comments
 (0)