ultimate-express 1.1.1 → 1.1.2

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/package.json +1 -1
  2. package/src/response.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-express",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "The Ultimate Express. Fastest http server with full Express compatibility, based on uWebSockets.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/response.js CHANGED
@@ -671,7 +671,7 @@ function pipeStreamOverResponse(res, readStream, totalSize, callback) {
671
671
  res._res.writeHeader(header, res.headers[header]);
672
672
  }
673
673
  if(!res.headers['content-type']) {
674
- res._res.writeHeader('content-type', 'text/html');
674
+ res._res.writeHeader('content-type', 'text/html; charset=utf-8');
675
675
  }
676
676
  res.headersSent = true;
677
677
  }