ultimate-express 1.4.2 → 1.4.3
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.
- package/README.md +1 -0
- package/package.json +1 -1
- package/src/response.js +1 -1
package/README.md
CHANGED
|
@@ -101,6 +101,7 @@ app.listen(3000, () => {
|
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
- This also applies to non-SSL HTTP too. Do not create http server manually, use `app.listen()` instead.
|
|
104
|
+
- NodeJS max header size is 16384 byte, uWebSockets 4096 byte, if you need long headers set the env variable `UWS_HTTP_MAX_HEADERS_SIZE`
|
|
104
105
|
|
|
105
106
|
## Performance tips
|
|
106
107
|
|
package/package.json
CHANGED
package/src/response.js
CHANGED
|
@@ -543,7 +543,7 @@ module.exports = class Response extends Writable {
|
|
|
543
543
|
} else {
|
|
544
544
|
field = field.toLowerCase();
|
|
545
545
|
if(field === 'set-cookie' && Array.isArray(value)) {
|
|
546
|
-
value = value.join('
|
|
546
|
+
value = value.join(', ');
|
|
547
547
|
} else if(field === 'content-type') {
|
|
548
548
|
if(!value.includes('charset=') && (value.startsWith('text/') || value === 'application/json' || value === 'application/javascript')) {
|
|
549
549
|
value += '; charset=utf-8';
|