| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a935806 commit df18174
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -176,7 +176,7 @@ ServerResponse.prototype.detachSocket = function detachSocket(socket) { | |||
| 176 | 176 | }; | |
| 177 | 177 | ||
| 178 | 178 | ServerResponse.prototype.writeContinue = function writeContinue(cb) { | |
| 179 | - this._writeRaw('HTTP/1.1 100 Continue' + CRLF + CRLF, 'ascii', cb); | ||
| 179 | + this._writeRaw(`HTTP/1.1 100 Continue${CRLF}${CRLF}`, 'ascii', cb); | ||
| 180 | 180 | this._sent100 = true; | |
| 181 | 181 | }; | |
| 182 | 182 | ||
@@ -230,7 +230,7 @@ function writeHead(statusCode, reason, obj) { | |||
| 230 | 230 | if (checkInvalidHeaderChar(this.statusMessage)) | |
| 231 | 231 | throw new errors.Error('ERR_INVALID_CHAR', 'statusMessage'); | |
| 232 | 232 | ||
| 233 | - var statusLine = 'HTTP/1.1 ' + statusCode + ' ' + this.statusMessage + CRLF; | ||
| 233 | + var statusLine = `HTTP/1.1 ${statusCode} ${this.statusMessage}${CRLF}`; | ||
| 234 | 234 | ||
| 235 | 235 | if (statusCode === 204 || statusCode === 304 || | |
| 236 | 236 | (statusCode >= 100 && statusCode <= 199)) { | |
@@ -456,7 +456,7 @@ function onParserExecute(server, socket, parser, state, ret, d) { | |||
| 456 | 456 | } | |
| 457 | 457 | ||
| 458 | 458 | const badRequestResponse = Buffer.from( | |
| 459 | - 'HTTP/1.1 400 ' + STATUS_CODES[400] + CRLF + CRLF, 'ascii' | ||
| 459 | + `HTTP/1.1 400 ${STATUS_CODES[400]}${CRLF}${CRLF}`, 'ascii' | ||
| 460 | 460 | ); | |
| 461 | 461 | function socketOnError(e) { | |
| 462 | 462 | // Ignore further errors | |
| Back | FazBrowse Home | New Git URL |
0 commit comments