Merge 1d9e6ab6dd
into 15d6770393
This commit is contained in:
commit
9e42e925b3
|
@ -75,6 +75,11 @@ abstract class BaseResponse extends Response {
|
||||||
$this->setLastModified($dataResponse->getLastModified());
|
$this->setLastModified($dataResponse->getLastModified());
|
||||||
$this->setCookies($dataResponse->getCookies());
|
$this->setCookies($dataResponse->getCookies());
|
||||||
|
|
||||||
|
if ($dataResponse->isThrottled()) {
|
||||||
|
$throttleMetadata = $dataResponse->getThrottleMetadata();
|
||||||
|
$this->throttle($throttleMetadata);
|
||||||
|
}
|
||||||
|
|
||||||
if ($format === 'json') {
|
if ($format === 'json') {
|
||||||
$this->addHeader(
|
$this->addHeader(
|
||||||
'Content-Type', 'application/json; charset=utf-8'
|
'Content-Type', 'application/json; charset=utf-8'
|
||||||
|
|
Loading…
Reference in New Issue