update middlewares, fixed 264
Merge pull request #265 from cnpm/update-middlewares

update middlewares, fixed 264