Skip to content

Commit ce60502

Browse files
committed
fix(http): apply SSL context to binary fetch used by getDanfse
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent a2de58b commit ce60502

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Http/NfseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ private function fetchAndDecode(string $path, mixed $context): array
290290
* Fetch a URL and return raw response bytes without JSON decoding.
291291
*
292292
* Used for binary endpoints such as ADN DANFSE (PDF artifact retrieval).
293-
* No mTLS is applied — DANFSE is accessible without client certificate.
294293
*
295294
* @return array{int, string}
296295
*/
@@ -302,6 +301,7 @@ private function getRawBytes(string $url): array
302301
'header' => "Accept: application/pdf\r\n",
303302
'ignore_errors' => true,
304303
],
304+
'ssl' => $this->sslContextOptions(),
305305
]);
306306

307307
$http_response_header = [];

0 commit comments

Comments
 (0)