Skip to content

Commit 7999bb5

Browse files
committed
fix htu dpop for the test suite
1 parent 2a11f8d commit 7999bb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Routes/SolidUserProfile.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public static function respondToProfile() {
3030
$resourceServer->setBaseUrl($baseUrl);
3131
$wac->setBaseUrl($baseUrl);
3232

33-
$webId = ProfileServer::getWebId($rawRequest);
33+
// use the original $_SERVER without modified path, otherwise the htu check for DPOP will fail
34+
$webId = ProfileServer::getWebId($requestFactory->fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES));
3435

3536
if (!isset($webId)) {
3637
$response = $resourceServer->getResponse()

0 commit comments

Comments
 (0)