paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 719681608c5c0a21472efb4f74de49d965d368d3
parent c913637a54dbbf6eb280767512eea4c36a3b6fe2
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Wed, 27 Mar 2019 22:17:37 -0400

Add mp3/mkv MIME types, remove wav

Diffstat:
Mserver/app.js | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/server/app.js b/server/app.js @@ -1,7 +1,7 @@ "use strict"; /* @file app.js * @author Jake Bauer - * @date 2019-03-26 + * @date 2019-03-27 * @original-date 2018-12-07 * * @brief The code for the web server. Handles all HTTP/1.1 methods. @@ -63,8 +63,9 @@ const httpServer = http.createServer((req, res) => { '.jpg': 'image/jpg', '.gif': 'image/gif', '.ico': 'image/x-icon', - '.wav': 'audio/wav', - '.mp4': 'video/mp4' + '.mp3': 'audio/mpeg', + '.mp4': 'video/mp4', + '.mkv': 'video/x-matroska' } let extName, contentType, acceptEncoding; let filePath = "./public" + req.url;