We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 889571b commit ebb9ff4Copy full SHA for ebb9ff4
1 file changed
www/user/profile.php
@@ -15,16 +15,14 @@
15
16
switch($method) {
17
case "GET":
18
- switch ($request) {
19
- case "/":
20
- SolidUserProfile::respondToProfile();
21
- break;
22
- }
+ case "PUT":
+ SolidUserProfile::respondToProfile();
23
break;
24
case "OPTIONS":
+ echo "OK";
+ return;
25
26
case "POST":
27
- case "PUT":
28
default:
29
header($_SERVER['SERVER_PROTOCOL'] . " 405 Method not allowed");
30
0 commit comments