Skip to content

Commit

Permalink
Changing sqlite3 to application/vnd.sqlite3 and retaining application…
Browse files Browse the repository at this point in the history
…/x-sqlite3 as an alias.

The generated supported mimes list also includes the `.msi` as it was not included through its original commit f85da30.

gabriel-vasile#170
  • Loading branch information
dennisstritzke committed Oct 4, 2021
1 parent 220897d commit 641d944
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mimetype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ var files = map[string]string{
"shp.shp": "application/octet-stream",
"shx.shx": "application/octet-stream",
"so.so": "application/x-sharedlib",
"sqlite.sqlite": "application/x-sqlite3",
"sqlite.sqlite": "application/vnd.sqlite3",
"svg.1.svg": "image/svg+xml",
"svg.svg": "image/svg+xml",
"swf.swf": "application/x-shockwave-flash",
Expand Down
5 changes: 3 additions & 2 deletions supported_mimes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 164 Supported MIME types
## 165 Supported MIME types
This file is automatically generated when running tests. Do not edit manually.

Extension | MIME type | Aliases
Expand Down Expand Up @@ -26,6 +26,7 @@ Extension | MIME type | Aliases
**.pdf** | application/pdf | application/x-pdf
**.fdf** | application/vnd.fdf | -
**n/a** | application/x-ole-storage | -
**.msi** | application/x-ms-installer | application/x-windows-installer, application/x-msi
**.aaf** | application/octet-stream | -
**.msg** | application/vnd.ms-outlook | -
**.xls** | application/vnd.ms-excel | application/msexcel
Expand Down Expand Up @@ -107,7 +108,7 @@ Extension | MIME type | Aliases
**.mobi** | application/x-mobipocket-ebook | -
**.lit** | application/x-ms-reader | -
**.bpg** | image/bpg | -
**.sqlite** | application/x-sqlite3 | -
**.sqlite** | application/vnd.sqlite3 | application/x-sqlite3
**.dwg** | image/vnd.dwg | image/x-dwg, application/acad, application/x-acad, application/autocad_dwg, application/dwg, application/x-dwg, application/x-autocad, drawing/dwg
**.nes** | application/vnd.nintendo.snes.rom | -
**.lnk** | application/x-ms-shortcut | -
Expand Down
5 changes: 3 additions & 2 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ var (
djvu = newMIME("image/vnd.djvu", ".djvu", magic.DjVu)
mobi = newMIME("application/x-mobipocket-ebook", ".mobi", magic.Mobi)
lit = newMIME("application/x-ms-reader", ".lit", magic.Lit)
sqlite3 = newMIME("application/x-sqlite3", ".sqlite", magic.Sqlite)
dwg = newMIME("image/vnd.dwg", ".dwg", magic.Dwg).
sqlite3 = newMIME("application/vnd.sqlite3", ".sqlite", magic.Sqlite).
alias("application/x-sqlite3")
dwg = newMIME("image/vnd.dwg", ".dwg", magic.Dwg).
alias("image/x-dwg", "application/acad", "application/x-acad",
"application/autocad_dwg", "application/dwg", "application/x-dwg",
"application/x-autocad", "drawing/dwg")
Expand Down

0 comments on commit 641d944

Please sign in to comment.