From 498ef049c03910435644737daf24f3161a6e331c Mon Sep 17 00:00:00 2001 From: Pavel Smirnov Date: Mon, 31 Oct 2022 13:33:57 +0000 Subject: [PATCH] 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 --- src/Tus/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tus/Server.php b/src/Tus/Server.php index 8c4d353..2df8dc5 100644 --- a/src/Tus/Server.php +++ b/src/Tus/Server.php @@ -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,