basic-node-server 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -44,7 +44,7 @@ const server = http.createServer((req, res) => {
44
44
  // Read the file and send it as the response
45
45
  const fileExtension = path.extname(filePath).substring(1);
46
46
  getContentType.then(contentType => {
47
- contentType[fileExtension] || 'application/octet-stream';
47
+ contentType = contentType[fileExtension] || 'application/octet-stream';
48
48
 
49
49
  res.setHeader('Content-Type', contentType);
50
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basic-node-server",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Simple node server for everyone.",
5
5
  "main": "index.js",
6
6
  "scripts": {