geqintan commited on
Commit
dc6d328
·
1 Parent(s): 4cb76f2
Files changed (1) hide show
  1. app.lua +1 -1
app.lua CHANGED
@@ -14,7 +14,7 @@ if uri == '/' then -- uri为 / ,退出运行
14
  ngx.exit(ngx.HTTP_OK)
15
  end
16
 
17
- local api_version, api_pxoxy_pass_url_indicator = uri:match("/([^/]+)/(.*)")
18
 
19
  ngx.say("api_version: ", api_version)
20
  ngx.say("api_pxoxy_pass_url_indicator: ", api_pxoxy_pass_url_indicator)
 
14
  ngx.exit(ngx.HTTP_OK)
15
  end
16
 
17
+ local api_version, api_pxoxy_pass_url_indicator = uri:match("/?([^/]+)/?(.*)")
18
 
19
  ngx.say("api_version: ", api_version)
20
  ngx.say("api_pxoxy_pass_url_indicator: ", api_pxoxy_pass_url_indicator)