Closed 501st-alpha1 closed 8 years ago
How did you try setting the header in the test? I think it's something ridiculous like
$this->call('get', '/exception', null, null, null, null, ['HTTP_User-Agent' => 'my-user-agent']
Actually, I think I was just trying to add the test to the wrong place. How does this look?
Looks good!
I tested this manually and it seems to be working; I can see the user agent in both the error email and the logs.
I was going to try adding a test, but the
user_agent
comes back asNULL
. (As doesclient_ip
, I noticed.) Any ideas for how best to simulate that?