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

Underscore character in header keys is not allowed on some load balancers #923

Open
humbertocastelo opened this issue Dec 3, 2024 · 1 comment

Comments

@humbertocastelo
Copy link

Hello, today I identified the presence of the underscore/underline character (_) in the header keys and this is prohibited in several stricter load balancers / reverse proxies, for example, Oracle's Load Balancer returns the error "Backend x.x.x.x returned invalid header"

Files:

1 - output/Headers.php

1.1 - header( sprintf( 'X-QM-%s-%s: %s', $id, $key, $value ) ); // replace from _ to - in $id and $key

2 - assets/query-monitor.js

2.1 - X-QM-php_errors-error-count > X-QM-php-errors-error-count
2.2 - X-QM-php_errors-error- > X-QM-php-errors-error-
@johnbillion
Copy link
Owner

Computers are fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants