Update lib/urlapi.c

Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com>
This commit is contained in:
Daniel Stenberg 2026-03-03 15:29:23 +01:00 committed by GitHub
parent f48ae36221
commit a29efdd63d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1582,7 +1582,7 @@ CURLUcode curl_url_get(const CURLU *u, CURLUPart what,
case CURLUPART_PORT:
ptr = u->port;
ifmissing = CURLUE_NO_PORT;
flags &= ~ U_CURLU_URLDECODE; /* never for port */
flags &= ~U_CURLU_URLDECODE; /* never for port */
if(!ptr && (flags & CURLU_DEFAULT_PORT) && u->scheme) {
/* there is no stored port number, but asked to deliver
a default one for the scheme */