Skip to content

Commit cc55a1b

Browse files
committed
extra test based on RFC 7231 page 38
1 parent 5443249 commit cc55a1b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

mimeparse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import cgi
2-
from functools import reduce
32

43
__version__ = '1.5.2'
54
__author__ = 'Joe Gregorio'

testdata.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@
149149
"application/rdf+xml",
150150
"match should use highest order of supported when there is a tie"
151151
],
152+
[
153+
[
154+
["text/plain", "text/plain;format=flowed", "text/html"],
155+
"text/*, text/plain, text/plain;format=flowed, */*"
156+
],
157+
"text/plain;format=flowed",
158+
"most specific reference has precedence"
159+
],
152160
[
153161
[
154162
["application/rdf+xml", "text/html"],

0 commit comments

Comments
 (0)