Skip to content

Commit c6536e8

Browse files
Issue#414 Fix Location header behind HTTPS proxy
- 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
1 parent 2067142 commit c6536e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Tus/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ protected function handlePost(): HttpResponse
366366
}
367367

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

371371
$file = $this->buildFile([
372372
'name' => $fileName,

0 commit comments

Comments
 (0)