Skip to content

Commit d4d6b00

Browse files
committed
fix: dont escape forward slashes in url field in API
1 parent 66e7d1e commit d4d6b00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ function downloadBatch(array $urls) {
399399
];
400400
}
401401
header("Content-Type: application/json");
402-
die(json_encode($info));
402+
die(json_encode($info, JSON_UNESCAPED_SLASHES));
403403
}
404404
$[end]$
405405

@@ -531,7 +531,7 @@ function downloadBatch(array $urls) {
531531
"hash_${{`process.env.HASH_ALGO`}}$" => ${{`process.env.HASH === "true" ? "hash_file('"+process.env.HASH_ALGO+"', $local_path)" : "null"`}}$
532532
];
533533
header("Content-Type: application/json");
534-
die(json_encode($info));
534+
die(json_encode($info, JSON_UNESCAPED_SLASHES));
535535
}
536536
$[end]$
537537

0 commit comments

Comments
 (0)