Skip to content

Commit

Permalink
fixup clear the query and fragment components correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Apr 17, 2024
1 parent b9b591b commit 9487a89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/urlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1747,9 +1747,11 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
break;
case CURLUPART_QUERY:
storep = &u->query;
u->query_present = FALSE;
break;
case CURLUPART_FRAGMENT:
storep = &u->fragment;
u->fragment_present = FALSE;
break;
default:
return CURLUE_UNKNOWN_PART;
Expand Down

0 comments on commit 9487a89

Please sign in to comment.