Add top_httphead('application/json');
This commit is contained in:
parent
9199bce9da
commit
3c539bee6a
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue