Skip to content

Commit ebb9ff4

Browse files
committed
allow GET and PUT
1 parent 889571b commit ebb9ff4

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

www/user/profile.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@
1515

1616
switch($method) {
1717
case "GET":
18-
switch ($request) {
19-
case "/":
20-
SolidUserProfile::respondToProfile();
21-
break;
22-
}
18+
case "PUT":
19+
SolidUserProfile::respondToProfile();
2320
break;
2421
case "OPTIONS":
22+
echo "OK";
23+
return;
2524
break;
2625
case "POST":
27-
case "PUT":
2826
default:
2927
header($_SERVER['SERVER_PROTOCOL'] . " 405 Method not allowed");
3028
break;

0 commit comments

Comments
 (0)