Skip to content

Commit ed293f5

Browse files
author
Chris Park
committed
Travis cleanup II
1 parent f36c05c commit ed293f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/rosette/api/Api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)