Skip to content

Commit 5eff8c3

Browse files
committed
Fix empty content-type.
1 parent 64e7e06 commit 5eff8c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14695,7 +14695,7 @@ http.ServerResponse.prototype.$text = function() {
1469514695
if (REG_TEXTAPPLICATION.test(options.type))
1469614696
options.type += '; charset=utf-8';
1469714697

14698-
headers[RESPONSE_HEADER_CONTENTTYPE] = options.type;
14698+
headers[RESPONSE_HEADER_CONTENTTYPE] = options.type || CONTENTTYPE_TEXTPLAIN;
1469914699

1470014700
if (options.headers)
1470114701
headers = U.extend_headers(headers, options.headers);

0 commit comments

Comments
 (0)