Skip to content

Commit

Permalink
fix: 修复不支持 post 方式提交的地址
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongzhi107 committed Jul 31, 2019
1 parent 6d8d218 commit c242d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/createServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ addStatic(server);

server
.disable('x-powered-by')
.get('*', async (req, res) => {
.all('*', async (req, res) => {
// 查找当前 URL 匹配的路由
const { query, _parsedUrl: { pathname } } = req;
const ssr = process.env.DACE_SSR === 'true';
Expand Down

0 comments on commit c242d0f

Please sign in to comment.