Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9280aa5 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

fix json encode

parent 5687298f
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -82,6 +82,10 @@ class CurlService {
				break;
			case 'POST':
				$options[CURLOPT_POST] = true;
				$jsonContent = in_array('Content-Type: application/json', $headers);
				if ($jsonContent) {
					$params = json_encode($params);
				}
				$options[CURLOPT_POSTFIELDS] = $params;
				break;
			case 'DELETE':