Skip to content

Commit

Permalink
Issue#414 Fix Location header behind HTTPS proxy
Browse files Browse the repository at this point in the history
- Server.php behind HTTPS reverse proxy
- Stop assuming the FQDN in Location header in responses
- Rely upon ApiPath configuration instead
- Responds with relative URLs by default
  • Loading branch information
psmirnov-dermview authored and ankitpokhrel committed Feb 18, 2024
1 parent a466a9b commit 498ef04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tus/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ protected function handlePost(): HttpResponse
}

$checksum = $this->getClientChecksum();
$location = $this->getRequest()->url() . $this->getApiPath() . '/' . $uploadKey;
$location = $this->getApiPath() . '/' . $uploadKey;

$file = $this->buildFile([
'name' => $fileName,
Expand Down

0 comments on commit 498ef04

Please sign in to comment.