Skip to content

Commit

Permalink
add support for application/vnd.shp and application/vnd.shx (#297)
Browse files Browse the repository at this point in the history
* add support for application/vnd.shp and application/vnd.shx

Co-authored-by: ALIAKBERAAKASH <[email protected]>
  • Loading branch information
AliAkberAakash and aliakberbs23 committed Jun 27, 2022
1 parent a019443 commit 0ff7d59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mimetype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ var files = map[string]string{
"rtf.rtf": "text/rtf",
"sample32.macho": "application/x-mach-binary",
"sample64.macho": "application/x-mach-binary",
"shp.shp": "application/octet-stream",
"shx.shx": "application/octet-stream",
"shp.shp": "application/vnd.shp",
"shx.shx": "application/vnd.shx",
"so.so": "application/x-sharedlib",
"sqlite.sqlite": "application/vnd.sqlite3",
"srt.srt": "application/x-subrip",
Expand Down
4 changes: 2 additions & 2 deletions supported_mimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ Extension | MIME type | Aliases
**.ttc** | font/collection | -
**.eot** | application/vnd.ms-fontobject | -
**.wasm** | application/wasm | -
**.shx** | application/octet-stream | -
**.shp** | application/octet-stream | -
**.shx** | application/vnd.shx | -
**.shp** | application/vnd.shp | -
**.dbf** | application/x-dbf | -
**.dcm** | application/dicom | -
**.rar** | application/x-rar-compressed | application/x-rar
Expand Down
4 changes: 2 additions & 2 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ var (
ttc = newMIME("font/collection", ".ttc", magic.Ttc)
eot = newMIME("application/vnd.ms-fontobject", ".eot", magic.Eot)
wasm = newMIME("application/wasm", ".wasm", magic.Wasm)
shp = newMIME("application/octet-stream", ".shp", magic.Shp)
shx = newMIME("application/octet-stream", ".shx", magic.Shx, shp)
shp = newMIME("application/vnd.shp", ".shp", magic.Shp)
shx = newMIME("application/vnd.shx", ".shx", magic.Shx, shp)
dbf = newMIME("application/x-dbf", ".dbf", magic.Dbf)
exe = newMIME("application/vnd.microsoft.portable-executable", ".exe", magic.Exe)
elf = newMIME("application/x-elf", "", magic.Elf, elfObj, elfExe, elfLib, elfDump)
Expand Down

0 comments on commit 0ff7d59

Please sign in to comment.