We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When dealing directly with the Request object, hyphenated headers are converted to underscores, which is incorrect.
Request
See:
$request = $this->container->get(Request::class); $pagination = null; if($request->hasHeader("x_pagination")) { $pagination = $request->getHeaderLine("x_pagination"); }
The actual header name is x-pagination, as per this JavaScript:
x-pagination
fetch(location.href, { headers: { "x-pagination": page } }).then(response => { // ... });
The text was updated successfully, but these errors were encountered:
fix: convert underscores to hyphens in http headers
875de78
closes #218
fix: convert underscores to hyphens in http headers (#219)
591a605
g105b
Successfully merging a pull request may close this issue.
When dealing directly with the
Request
object, hyphenated headers are converted to underscores, which is incorrect.See:
The actual header name is
x-pagination
, as per this JavaScript:The text was updated successfully, but these errors were encountered: