@@ -70,31 +70,31 @@ public function stopImpersonateUser(): void
70
70
*/
71
71
public function requestGet (string $ path ): bool
72
72
{
73
- return $ this ->runRequest ('get ' , $ path );
73
+ return $ this ->runRequest ('GET ' , $ path );
74
74
}
75
75
76
76
/**
77
77
* Create and send a POST request.
78
78
*/
79
79
public function requestPost (string $ path , string $ body ): bool
80
80
{
81
- return $ this ->runRequest ('post ' , $ path , $ body );
81
+ return $ this ->runRequest ('POST ' , $ path , $ body );
82
82
}
83
83
84
84
/**
85
85
* Create and send a PUT request.
86
86
*/
87
87
public function requestPut (string $ path , string $ body ): bool
88
88
{
89
- return $ this ->runRequest ('put ' , $ path , $ body );
89
+ return $ this ->runRequest ('PUT ' , $ path , $ body );
90
90
}
91
91
92
92
/**
93
93
* Create and send a DELETE request.
94
94
*/
95
95
public function requestDelete (string $ path ): bool
96
96
{
97
- return $ this ->runRequest ('delete ' , $ path );
97
+ return $ this ->runRequest ('DELETE ' , $ path );
98
98
}
99
99
100
100
/**
@@ -180,7 +180,7 @@ private function createRequest(string $method, string $path, string $body = ''):
180
180
}
181
181
182
182
switch ($ method ) {
183
- case 'post ' :
183
+ case 'POST ' :
184
184
if ($ this ->isUploadCall ($ path , $ body )) {
185
185
$ request = $ request ->withBody (
186
186
$ this ->streamFactory ->createStreamFromFile ($ body )
@@ -191,7 +191,7 @@ private function createRequest(string $method, string $path, string $body = ''):
191
191
);
192
192
}
193
193
break ;
194
- case 'put ' :
194
+ case 'PUT ' :
195
195
if ('' !== $ body ) {
196
196
$ request = $ request ->withBody (
197
197
$ this ->streamFactory ->createStream ($ body )
0 commit comments