You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Occasionally, some controllers or middlewares will return a Symfony Response, rather than an Illuminate Response. When this happens, this Middleware fails due to calls to $rsp->header($headerName, $headerValue). This can be easily fixed by replacing these with $rsp->headers->set($headerName, $headerValue).
Additionally, for full coverage, you could also replace calls to $req->header($headerName) with $reg->headers->get($headerName) to cover the rare occasion when a Symfony Request is used as well (I haven't actually run into that issue, personally).
The text was updated successfully, but these errors were encountered:
Occasionally, some controllers or middlewares will return a Symfony Response, rather than an Illuminate Response. When this happens, this Middleware fails due to calls to
$rsp->header($headerName, $headerValue)
. This can be easily fixed by replacing these with$rsp->headers->set($headerName, $headerValue)
.Additionally, for full coverage, you could also replace calls to
$req->header($headerName)
with$reg->headers->get($headerName)
to cover the rare occasion when a Symfony Request is used as well (I haven't actually run into that issue, personally).The text was updated successfully, but these errors were encountered: