Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Caddy dependency #7

Merged
merged 1 commit into from
Mar 28, 2020
Merged

Update Caddy dependency #7

merged 1 commit into from
Mar 28, 2020

Conversation

mohammed90
Copy link
Member

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.

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.
@mohammed90 mohammed90 requested a review from mholt March 28, 2020 09:12
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, what a fun hack :) Thanks, I hate it. 😃

@mholt mholt merged commit 0464b93 into master Mar 28, 2020
@mholt mholt deleted the update-caddy-dep branch March 28, 2020 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants