8000 [browser kit] Client now stores filtered response after request. · symfony/symfony@ce7e1e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce7e1e6

Browse files
author
jeanfrancois.simon
committed
[browser kit] Client now stores filtered response after request.
1 parent 1541fe2 commit ce7e1e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/BrowserKit/Client.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,17 +264,17 @@ public function request($method, $uri, array $parameters = array(), array $files
264264
$this->response = $this->doRequest($this->request);
265265
}
266266

267-
$response = $this->filterResponse($this->response);
267+
$this->response = $this->filterResponse($this->response);
268268

269-
$this->cookieJar->updateFromResponse($response);
269+
$this->cookieJar->updateFromResponse($this->response);
270270

271-
$this->redirect = $response->getHeader('Location');
271+
$this->redirect = $this->response->getHeader('Location');
272272

273273
if ($this->followRedirects && $this->redirect) {
274274
return $this->crawler = $this->followRedirect();
275275
}
276276

277-
return $this->crawler = $this->createCrawlerFromContent($request->getUri(), $response->getContent(), $response->getHeader('Content-Type'));
277+
return $this->crawler = $this->createCrawlerFromContent($request->getUri(), $this->response->getContent(), $this->response->getHeader('Content-Type'));
278278
}
279279

280280
/**

0 commit comments

Comments
 (0)
0