We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64e7e06 commit 5eff8c3Copy full SHA for 5eff8c3
1 file changed
index.js
@@ -14695,7 +14695,7 @@ http.ServerResponse.prototype.$text = function() {
14695
if (REG_TEXTAPPLICATION.test(options.type))
14696
options.type += '; charset=utf-8';
14697
14698
- headers[RESPONSE_HEADER_CONTENTTYPE] = options.type;
+ headers[RESPONSE_HEADER_CONTENTTYPE] = options.type || CONTENTTYPE_TEXTPLAIN;
14699
14700
if (options.headers)
14701
headers = U.extend_headers(headers, options.headers);
0 commit comments