Add top_httphead('application/json');

This commit is contained in:
sonikf 2023-09-22 14:32:05 +03:00 committed by GitHub
parent 9199bce9da
commit 3c539bee6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,6 +33,7 @@ $afm = GETPOST('afm'); // Get client Vat from request
// Make call to check VAT for Greek client
$result = checkVATGR($username, $password, $myafm, $afm);
top_httphead('application/json');
echo json_encode($result); // Encode the result as JSON and output
/**