ocd
This commit is contained in:
parent
80ace2c0bb
commit
4ff54e5c13
3 changed files with 7 additions and 7 deletions
|
@ -3,18 +3,18 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var debug = require('debug')('koa:application');
|
var debug = require('debug')('koa:application');
|
||||||
var onFinished = require('finished');
|
|
||||||
var Emitter = require('events').EventEmitter;
|
var Emitter = require('events').EventEmitter;
|
||||||
var Stream = require('stream');
|
|
||||||
var compose = require('koa-compose');
|
var compose = require('koa-compose');
|
||||||
|
var isJSON = require('koa-is-json');
|
||||||
|
var response = require('./response');
|
||||||
var context = require('./context');
|
var context = require('./context');
|
||||||
var request = require('./request');
|
var request = require('./request');
|
||||||
var response = require('./response');
|
var finished = require('finished');
|
||||||
var isJSON = require('koa-is-json');
|
|
||||||
var Cookies = require('cookies');
|
var Cookies = require('cookies');
|
||||||
var accepts = require('accepts');
|
var accepts = require('accepts');
|
||||||
var status = require('statuses');
|
var status = require('statuses');
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
|
var Stream = require('stream');
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
var only = require('only');
|
var only = require('only');
|
||||||
var co = require('co');
|
var co = require('co');
|
||||||
|
@ -120,7 +120,7 @@ app.callback = function(){
|
||||||
return function(req, res){
|
return function(req, res){
|
||||||
res.statusCode = 404;
|
res.statusCode = 404;
|
||||||
var ctx = self.createContext(req, res);
|
var ctx = self.createContext(req, res);
|
||||||
onFinished(ctx, ctx.onerror);
|
finished(ctx, ctx.onerror);
|
||||||
fn.call(ctx, ctx.onerror);
|
fn.call(ctx, ctx.onerror);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
* Module dependencies.
|
* Module dependencies.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var assert = require('assert');
|
|
||||||
var delegate = require('delegates');
|
var delegate = require('delegates');
|
||||||
|
var assert = require('assert');
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,8 +7,8 @@ var qs = require('querystring');
|
||||||
var typeis = require('type-is');
|
var typeis = require('type-is');
|
||||||
var fresh = require('fresh');
|
var fresh = require('fresh');
|
||||||
var url = require('url');
|
var url = require('url');
|
||||||
var parse = url.parse;
|
|
||||||
var stringify = url.format;
|
var stringify = url.format;
|
||||||
|
var parse = url.parse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prototype.
|
* Prototype.
|
||||||
|
|
Loading…
Reference in a new issue