Skip to content

Commit e8dc88e

Browse files
committed
Code cleanup
1 parent 3ca8712 commit e8dc88e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/server.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,9 @@ Server.prototype._handleStream = function (request, response, requestUrl) {
224224

225225
headers = {}
226226
headers[Server._CONTENT_TYPE] = contentType
227-
228-
if (self._cors) {
229-
headers[Server._ACCESS_CONTROL_ALLOW_ORIGIN] = self._cors
230-
}
227+
if (self._cors) headers[Server._ACCESS_CONTROL_ALLOW_ORIGIN] = self._cors
231228

232229
response.writeHead(200, headers)
233-
234230
readStream.pipe(response)
235231
}
236232
}

0 commit comments

Comments
 (0)