41 Commits

Author SHA1 Message Date
lichengyin
5678b23656 move middlewares to src/middleware path 2015-12-28 16:24:02 +08:00
lichengyin
1764f8def3 move middleware to src/middleware 2015-12-28 16:06:36 +08:00
lichengyin
0bc1d1c773 move parse_form_payload to src/middleware 2015-12-28 11:51:26 +08:00
lichengyin
c5040236b6 move output_resource middleware to src/middleware 2015-12-28 09:50:45 +08:00
lichengyin
3d0f08480f move rewite_pathname to src/middleware path 2015-12-28 09:32:43 +08:00
lichengyin
99561bb412 move subdomain_deploy middleware to src/middleware path 2015-12-27 21:20:32 +08:00
lichengyin
172c5415d0 Merge branch 'master' into 2.1
* master:
  log error when parse post data error in development env, fix #227

Conflicts:
	src/bootstrap/_payload.js
	src/config/post.js
2015-12-25 12:26:58 +08:00
lichengyin
34d2a86e52 log error when parse post data error in development env, fix #227 2015-12-25 12:11:25 +08:00
lichengyin
a1e7e6ba1f rewrite pathname middleware 2015-12-23 10:32:57 +08:00
lichengyin
f0668e87c9 fix windows test error 2015-12-18 09:38:12 +08:00
lichengyin
e12cdd1322 fix windows test error 2015-12-17 16:16:21 +08:00
lichengyin
124f5231e1 when parse json payload error, use query string parse instead 2015-12-17 11:06:21 +08:00
lichengyin
5020d003f2 prevent next middlewares invoked when middleware return null in hook 2015-12-09 18:53:23 +08:00
lichengyin
e6a3800377 hide resource request log when log_request config is open 2015-11-10 11:54:50 +08:00
lichengyin
efa63ddda5 support resource request has range header 2015-11-07 08:53:27 +08:00
lichengyin
94c9c46c1e fix get payload error when has third middleware to parse payload 2015-11-03 10:54:50 +08:00
lichengyin
2dd15e38f9 optimize file download 2015-10-29 10:15:12 +08:00
lichengyin
80f8652cdf support where({title: null}) 2015-10-29 08:59:28 +08:00
lichengyin
ce84658390 rename hook names 2015-10-28 17:02:35 +08:00
lichengyin
97cae81bbd fix test case error 2015-10-28 14:14:08 +08:00
lichengyin
cb2d5b2e9b add http._payloadParsed property for parse request payload 2015-10-28 11:38:08 +08:00
lichengyin
dd51671211 add http._payloadParsed property for parse request payload 2015-10-28 11:36:42 +08:00
lichengyin
4884a1ae9d add bootstrap/_payload.js test case 2015-10-26 14:40:47 +08:00
lichengyin
593057c7c6 replace get content-type by http.type() method 2015-10-16 09:54:48 +08:00
lichengyin
b61268a18b use middleware to refactoring get http post payload, fix eslint errors 2015-10-16 09:48:31 +08:00
maxzhang
2a76824e92 update http test case, and fix some http bugs 2015-08-10 20:27:11 +08:00
welefen
3e13db07d9 remove app_error hook, use think.statusAction instead 2015-08-07 15:34:59 +08:00
welefen
5be8837101 add bootstrap/middleware.js test case 2015-07-17 18:23:29 +08:00
welefen
81f134d3b4 use resourece_output hook for send error middleware 2015-07-17 15:56:08 +08:00
welefen
4a277fa013 use output_resource hook for download file 2015-07-17 15:51:18 +08:00
welefen
afe3b57035 rename bootstrap/hook.js to middleware.js 2015-07-17 15:24:51 +08:00
welefen
0e1fe444b1 fix get json_content_type error 2015-06-02 18:06:58 +08:00
welefen
d02f1eac35 fix local & json_content_type error 2015-06-02 18:02:34 +08:00
welefen
e0527bcc78 fix eslint errors 2015-05-26 12:31:12 +08:00
welefen
d69c50a0a8 rewrite module export 2015-05-26 10:46:19 +08:00
welefen
5fcae2ef21 rewrite require & module.exports with es6 module 2015-05-26 10:33:47 +08:00
welefen
0c70ae0513 optimize think.cache 2015-05-23 07:16:18 +08:00
welefen
51b56b6279 rewrite by es6 2015-05-20 15:07:59 +08:00
welefen
4486e91797 rewrite by es6 2015-05-20 10:56:01 +08:00
welefen
a9d205c893 bootstrap hook to es6 2015-05-18 11:44:55 +08:00
welefen
f579357ad7 move lib dir to src 2015-05-15 19:43:36 +08:00