From a54bcb6550bb738d9607c03c75495a9055251259 Mon Sep 17 00:00:00 2001 From: martinfnsw <88680430+martinfnsw@users.noreply.github.com> Date: Wed, 13 Oct 2021 17:01:49 -0500 Subject: [PATCH] Agregar content type El servicio no regresa en texto el cfdi, se agrega un content type para que el navegador pueda leer todo el response. --- SWServices/JSonIssuer/JsonIssuerRequest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SWServices/JSonIssuer/JsonIssuerRequest.php b/SWServices/JSonIssuer/JsonIssuerRequest.php index c417201..3d7acc6 100644 --- a/SWServices/JSonIssuer/JsonIssuerRequest.php +++ b/SWServices/JSonIssuer/JsonIssuerRequest.php @@ -6,6 +6,7 @@ class JsonIssuerRequest{ +header('Content-Type: text/plain'); public static function sendReq($url, $token, $json, $version, $isB64, $proxy){ $curl = curl_init(); @@ -43,4 +44,4 @@ public static function sendReq($url, $token, $json, $version, $isB64, $proxy){ } } } -?> \ No newline at end of file +?>