Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
added charset on 404 header
Browse files Browse the repository at this point in the history
  • Loading branch information
mvrilo committed Nov 20, 2010
1 parent 7cfc2b2 commit 68ce0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/frank.js
Expand Up @@ -42,7 +42,7 @@ var core = {
if (core.list[i].route.toLowerCase() === 'not found' || core.list[i].route.toLowerCase() === 'not found') { if (core.list[i].route.toLowerCase() === 'not found' || core.list[i].route.toLowerCase() === 'not found') {
if (typeof core.list[i].end !== 'function') { if (typeof core.list[i].end !== 'function') {
res.writeHead(404, { res.writeHead(404, {
'Content-Type':core.list[i].dataType, 'Content-Type':core.list[i].dataType + '; charset=UTF-8',
Server:'Node.js Frank', Server:'Node.js Frank',
'Date':+new Date().toUTCString(), 'Date':+new Date().toUTCString(),
'Content-Length':core.list[i].end.length 'Content-Length':core.list[i].end.length
Expand Down

0 comments on commit 68ce0a5

Please sign in to comment.