This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-NodeJSBlog
mirror of
https://github.com/jrtechs/NodeJSBlog.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Updated server.js to handel wrong requests.
pull/4/head
jrtechs
6 years ago
parent
4bbb823744
commit
24982c73e3
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
server.js
+ 2
- 1
server.js
View File
@ -122,7 +122,8 @@ app.use(function(request, res)
}
else
{
utils
.
printWrongHost
(
res
)
;
// utils.printWrongHost(res);
res
.
writeHead
(
418
,
{
}
)
;
res
.
end
(
)
;
}
}
)
;
Write
Preview
Loading…
Cancel
Save