1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Improving error reporting API

This commit is contained in:
David Bomba 2016-02-17 10:36:45 +11:00
parent 7cd3bac29c
commit 7da522599c

View File

@ -744,7 +744,7 @@ class Invoice extends EntityModel implements BalanceAffecting
$opts = [
CURLOPT_URL => PHANTOMJS_CLOUD . env('PHANTOMJS_CLOUD_KEY') . '/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $jsonEncodedData,
CURLOPT_HTTPHEADER => [
@ -758,7 +758,7 @@ class Invoice extends EntityModel implements BalanceAffecting
curl_close($curl);
Log::info($response);
$encodedString = strip_tags($response);
$pdfString = Utils::decodePDF($encodedString);