Skip to content

Commit a5e9bf2

Browse files
committed
Now using byteLength insetad of .length
1 parent 03428fa commit a5e9bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function Server(options, isSecure, onListening) {
4949
}
5050
response.writeHead(200, {
5151
'Content-Type': 'text/xml',
52-
'Content-Length': xml.length
52+
'Content-Length': Buffer.byteLength(xml, 'utf8')
5353
})
5454
response.end(xml)
5555
})

0 commit comments

Comments
 (0)