Skip to content

Commit

Permalink
Add demonstration for setting referrer in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
craig-davis committed Jan 16, 2015
1 parent f246f63 commit 83b8a20
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 76 deletions.
6 changes: 6 additions & 0 deletions app/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,11 @@
$app->response->write($response);
});

$app->get('/issue12', function () use ($app) {
$referer = $app->request->headers('referer');
$response = $referer ? $referer : 'Missing referer header';
$app->response->write($response);
});


/* End of file app.php */
Loading

0 comments on commit 83b8a20

Please sign in to comment.