Skip to content

Commit

Permalink
Update glTF MIME Types (this applies to all versions of glTF)
Browse files Browse the repository at this point in the history
  • Loading branch information
emackey committed Apr 10, 2017
1 parent 7b4fc36 commit 4ab83e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
'application/json' : ['czml', 'json', 'geojson', 'topojson'],
'image/crn' : ['crn'],
'image/ktx' : ['ktx'],
'model/vnd.gltf+json' : ['gltf'],
'model/vnd.gltf.binary' : ['bgltf', 'glb'],
'model/gltf+json' : ['gltf'],
'model/gltf.binary' : ['bgltf', 'glb'],
'text/plain' : ['glsl']
});

Expand Down
6 changes: 3 additions & 3 deletions web.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<remove fileExtension=".glsl" />
<mimeMap fileExtension=".glsl" mimeType="text/plain" />
<remove fileExtension=".gltf" />
<mimeMap fileExtension=".gltf" mimeType="model/vnd.gltf+json" />
<mimeMap fileExtension=".gltf" mimeType="model/gltf+json" />
<remove fileExtension=".bgltf" />
<mimeMap fileExtension=".bgltf" mimeType="model/vnd.gltf.binary" />
<mimeMap fileExtension=".bgltf" mimeType="model/gltf.binary" />
<remove fileExtension=".glb" />
<mimeMap fileExtension=".glb" mimeType="model/vnd.gltf.binary" />
<mimeMap fileExtension=".glb" mimeType="model/gltf.binary" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<remove fileExtension=".geojson" />
Expand Down

0 comments on commit 4ab83e6

Please sign in to comment.