Skip to content

Commit 0464b93

Browse files
authored
Update Caddy dependency (#7)
As of Caddy v2.0.0-beta.20, the split_path config parameter takes a slice/array. This commit adapt to the change. Through adapting to the update, a bug in processing `fastcgi_split_path_info` was found. The `fastcgi_split_path_info` directive in NGINX takes a regexp with 2 capture groups: the first is for the CGI script file name including its extension, and the second is for PATH_INFO. Before this commit, the directive was treated as if it takes the extension of the script file. The fix in this commit finds the extension by looking for a period followed by a series of alphanumeric characters, and uses that as our split_path paramter.
1 parent 6c48455 commit 0464b93

File tree

3 files changed

+693
-51
lines changed

3 files changed

+693
-51
lines changed

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/caddyserver/nginx-adapter
22

33
go 1.13
44

5-
require github.com/caddyserver/caddy/v2 v2.0.0-beta.13.0.20200208193637-98bbc54fdcd0
5+
require github.com/caddyserver/caddy/v2 v2.0.0-beta.20

0 commit comments

Comments
 (0)