Skip to content

Commit

Permalink
Merge branch '2' into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 19, 2023
2 parents dca7b88 + e3890d3 commit 361c470
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Controllers/ShareDraftController.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ private function getRenderedPageByURL(string $url): HTTPResponse

Environment::setVariables($variables);

// This extra step required for PHP-FPM/Nginx implementations
Environment::setEnv('REQUEST_URI', $url);
Environment::setEnv('REQUEST_METHOD', 'GET');
Environment::setEnv('HTTP_USER_AGENT', $variables['_SERVER']['HTTP_USER_AGENT']);

// Health-check prior to creating environment
$pageRequest = HTTPRequestBuilder::createFromVariables($variables, @file_get_contents('php://input'));

Expand Down

0 comments on commit 361c470

Please sign in to comment.