mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
urlapi: remove unneeded guards around PUNY2IDN
Add more IDN/punycode tests to 1560 Closes #17364
This commit is contained in:
parent
73b8912580
commit
e0f05bcf69
2 changed files with 8 additions and 2 deletions
|
|
@ -1493,7 +1493,7 @@ CURLUcode curl_url_get(const CURLU *u, CURLUPart what,
|
|||
}
|
||||
}
|
||||
else if(depunyfy) {
|
||||
if(Curl_is_ASCII_name(u->host) && !strncmp("xn--", u->host, 4)) {
|
||||
if(Curl_is_ASCII_name(u->host)) {
|
||||
#ifndef USE_IDN
|
||||
return CURLUE_LACKS_IDN;
|
||||
#else
|
||||
|
|
@ -1592,7 +1592,7 @@ CURLUcode curl_url_get(const CURLU *u, CURLUPart what,
|
|||
}
|
||||
}
|
||||
else if(depunyfy) {
|
||||
if(Curl_is_ASCII_name(u->host) && !strncmp("xn--", u->host, 4)) {
|
||||
if(Curl_is_ASCII_name(u->host)) {
|
||||
#ifndef USE_IDN
|
||||
return CURLUE_LACKS_IDN;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue