mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Fix for header writing
This commit is contained in:
parent
ddf3f1b890
commit
ca776e83a2
@ -63,12 +63,13 @@ class BearerTokenResponse extends AbstractResponseType
|
|||||||
$responseParams['refresh_token'] = $refreshToken;
|
$responseParams['refresh_token'] = $refreshToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
$response
|
$response = $response
|
||||||
->withStatus(200)
|
->withStatus(200)
|
||||||
->withHeader('pragma', 'no-cache')
|
->withHeader('pragma', 'no-cache')
|
||||||
->withHeader('cache-control', 'no-store')
|
->withHeader('cache-control', 'no-store')
|
||||||
->withHeader('content-type', 'application/json;charset=UTF-8')
|
->withHeader('content-type', 'application/json; charset=UTF-8');
|
||||||
->getBody()->write(json_encode($responseParams));
|
|
||||||
|
$response->getBody()->write(json_encode($responseParams));
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user