Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

We've changed body of 404 message.

  • Loading branch information...
commit d2c1687c0bae10aaad13503e2026135294d590ae 1 parent 33f6ff5
@majek majek authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/sockjs.coffee
View
6 src/sockjs.coffee
@@ -25,6 +25,12 @@ class App extends webjs.GenericApp
res.end("Welcome to SockJS!\n")
return true
+ handle_404: (req, res) ->
+ res.setHeader('content-type', 'text/plain; charset=UTF-8')
+ res.writeHead(404)
+ res.end('404 Error: Page not found\n')
+ return true
+
disabled_transport: (req, res, data) ->
return @handle_404(req, res, data)
Please sign in to comment.
Something went wrong with that request. Please try again.