@@ -37,10 +37,11 @@ |
||
| 37 | 37 | $base = ($this->useSSL) ? "https" : "http"; |
| 38 | 38 | $url = $base . "://" . $this->host . ":" .$this->port.$this->plugin.$endpoint; |
| 39 | 39 | |
| 40 | - if ($this->useBasicAuth) |
|
| 41 | - $auth = 'Basic ' . base64_encode($this->basicUser . ':' . $this->basicPwd); |
|
| 42 | - else |
|
| 43 | - $auth = $this->secret; |
|
| 40 | + if ($this->useBasicAuth) { |
|
| 41 | + $auth = 'Basic ' . base64_encode($this->basicUser . ':' . $this->basicPwd); |
|
| 42 | + } else { |
|
| 43 | + $auth = $this->secret; |
|
| 44 | + } |
|
| 44 | 45 | |
| 45 | 46 | $headers = array( |
| 46 | 47 | 'Accept' => 'application/json', |