File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ public function checkVersion($url, $versionToCheck = null)
376376 * @internal param $data : submission data
377377 * @internal param $method : http method
378378 */
379- private function makeRequest ($ url , $ headers , $ data = array () , $ method = ' POST ' )
379+ private function makeRequest ($ url , $ headers , $ data , $ method )
380380 {
381381 $ response = null ;
382382 $ message = null ;
@@ -518,7 +518,7 @@ function ($k, $v) {
518518 private function getHttp ($ url , $ headers )
519519 {
520520 $ method = 'GET ' ;
521- $ response = $ this ->makeRequest ($ url , $ headers );
521+ $ response = $ this ->makeRequest ($ url , $ headers, null , $ method );
522522
523523 return $ response ;
524524 }
@@ -542,7 +542,7 @@ private function getHttp($url, $headers)
542542 private function postHttp ($ url , $ headers , $ data )
543543 {
544544 $ method = 'POST ' ;
545- $ response = $ this ->makeRequest ($ url , $ headers , $ data );
545+ $ response = $ this ->makeRequest ($ url , $ headers , $ data, $ method );
546546
547547 return $ response ;
548548 }
You can’t perform that action at this time.
0 commit comments