Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ const isPathInside = require('path-is-inside')
// Utilities
const renderDirectory = require('./render')

// Register the mime type for `.wasm` files. This change is currently not
// possible on upstream because of an unrelated issue. Once `mime-types` is
// updated, this line can be removed.
// https://github.com/jshttp/mime-types/issues/44
mime.types['wasm'] = 'application/wasm'

module.exports = coroutine(function*(req, res, flags, current, ignoredFiles) {
const headers = {}

Expand Down