Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore committed Aug 23, 2018
1 parent e865f33 commit d986505
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class Application extends EggApplication {
}

[RESPONSE_RAW](socket, raw) {
console.info(1111, DEFAULT_BAD_REQUEST_RESPONSE);
if (!socket.writable) return;
if (!raw) return socket.end(DEFAULT_BAD_REQUEST_RESPONSE);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
'use strict';

module.exports = app => {
let server;
app.on('server', srv => { server = srv; });

app.get('/', function* () {
this.body = this.app.serverEmit;
});

app.get('/client_error', async ctx => {
server.emit('clientError', new Error('test'), ctx.req.socket);
});
};

0 comments on commit d986505

Please sign in to comment.