Skip to content

Commit

Permalink
Merge pull request #20 from HTTPArchive/json-type
Browse files Browse the repository at this point in the history
Update utils.py
  • Loading branch information
pmeenan authored Oct 16, 2024
2 parents 6f925bb + 1fb35ec commit a7ca702
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HTTPArchive/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ def pretty_type(mime_typ, ext):
return typ

# Special cases I found by manually searching.
if "json" in mime_typ or ext in ["js", "json"]:
if ext == "js":
return "script"
elif "json" in mime_typ or ext == "json":
return "json"
elif ext in ["eot", "ttf", "woff", "woff2", "otf"]:
return "font"
elif ext in [
Expand Down

0 comments on commit a7ca702

Please sign in to comment.