Skip to content

Commit a7ca702

Browse files
authored
Merge pull request #20 from HTTPArchive/json-type
Update utils.py
2 parents 6f925bb + 1fb35ec commit a7ca702

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

HTTPArchive/utils.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ def pretty_type(mime_typ, ext):
5555
return typ
5656

5757
# Special cases I found by manually searching.
58-
if "json" in mime_typ or ext in ["js", "json"]:
58+
if ext == "js":
5959
return "script"
60+
elif "json" in mime_typ or ext == "json":
61+
return "json"
6062
elif ext in ["eot", "ttf", "woff", "woff2", "otf"]:
6163
return "font"
6264
elif ext in [

0 commit comments

Comments
 (0)