Skip to content

Commit 7fceeba

Browse files
committed
fixed Client implementation to return the right Response (closes #4475)
1 parent d72edc8 commit 7fceeba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function getProfile()
6969
return false;
7070
}
7171

72-
return $this->kernel->getContainer()->get('profiler')->loadProfileFromResponse($this->response);
72+
return $this->kernel->getContainer()->get('profiler')->loadProfileFromResponse($this->originResponse);
7373
}
7474

7575
/**

Tests/Functional/SubRequestsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public function testStateAfterSubRequest()
2121
$client = $this->createClient(array('test_case' => 'Session', 'root_config' => 'config.yml'));
2222
$client->request('GET', 'https://localhost/subrequest/en');
2323

24-
$this->assertEquals('--fr/json--en/html--fr/json--http://localhost/subrequest/fragment/en', $client->getResponse()->getContent());
24+
$this->assertEquals('--fr/json--en/html--fr/json--http://localhost/subrequest/fragment/en', $client->getOriginResponse()->getContent());
2525
}
2626
}

0 commit comments

Comments
 (0)