merged branch armetiz/patch-7 (PR #5530)
Commits
-------
de6658b
[Profiler]Use the abstract method to get client IP
Discussion
----------
[Profiler]Use the abstract method to get client IP
---------------------------------------------------------------------------
by armetiz at 2012-09-17T13:37:19Z
This PR is also done for master branch : https://github.com/symfony/symfony/pull/5527
This commit is contained in:
commit
8e759076f0
@ -165,7 +165,7 @@ class Profiler
|
||||
$profile = new Profile(uniqid());
|
||||
$profile->setTime(time());
|
||||
$profile->setUrl($request->getUri());
|
||||
$profile->setIp($request->server->get('REMOTE_ADDR'));
|
||||
$profile->setIp($request->getClientIp());
|
||||
|
||||
$response->headers->set('X-Debug-Token', $profile->getToken());
|
||||
|
||||
|
Reference in New Issue
Block a user