Skip to content

Commit

Permalink
Merge branch 'dev' into hexagon-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka authored Nov 17, 2024
2 parents ee0aefe + 9ef17a4 commit 159630d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions librz/socket/socket_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,18 @@ static char *socket_http_get_recursive(const char *url, int *code, int *rlen, ut
if (!RZ_STR_ISEMPTY(curl_env) && atoi(curl_env)) {
int len;
char *escaped_url = rz_str_escape_sh(url);
char *command = rz_str_newf("curl -sfL -o - \"%s\"", escaped_url);
char *res = rz_sys_cmd_str(command, NULL, &len);
char *command = rz_str_newf("curl -sSfL -o - \"%s\"", escaped_url);
char *res = NULL;
char *err = NULL;
int ret = rz_sys_cmd_str_full(command, NULL, &res, &len, &err);
free(escaped_url);
free(command);
free(curl_env);
if (!res) {
if (err) {
eprintf("%s", err);
free(err);
}
if (!ret || !res) {
return NULL;
}
if (res) {
Expand Down

0 comments on commit 159630d

Please sign in to comment.