-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Fix upstream_response_time parsing with colon in value #267
Conversation
The fix for correct parsing of multiple values in upstream_response_time applied in martin-helmich#221 was only partial, as it accounts only for commas, but the value can also contain colons as separators, when the request goes through an internal redirect. See the description for '$upstream_addr' in https://nginx.org/en/docs/http/ngx_http_upstream_module.html for more info.
Code Climate has analyzed commit 2d793ab and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
There has not been any activity to this pull request in the last 30 days. It will automatically be closed after 7 more days. Remove the |
In relatation of #274 , I tried to test it but the issue doesn't look to be fixed (hoping I didn't mess up the test, see below)
I don't think you can fix it by splitting the resulted variable. The error indicates that the regex can't parse meaning we are before the variable has been parsed. I think the issue comes from the translation of the nginx format to regex which is apparently done with gonx |
@Nereis you need to quote the |
The fix for correct parsing of multiple values in upstream_response_time
applied in #221 was only partial, as it accounts only for commas, but
the value can also contain colons as separators, when the request goes
through an internal redirect.
See the description for '$upstream_addr' in
https://nginx.org/en/docs/http/ngx_http_upstream_module.html for more
info.