Add a debug assertion to verify protocols included/excluded in a set
are always tokenized.
Follow-up to commit
677266c.
Closes #9576
if(result)
break;
- /* here */
use_proto = url_proto(per->this_url);
-#if 0
- if(!use_proto) {
- warnf(global, "URL is '%s' but no support for the scheme\n",
- per->this_url);
- }
-#endif
if(!config->tcp_nodelay)
my_setopt(curl, CURLOPT_TCP_NODELAY, 0L);
{
const char * const *p = protoset;
+ DEBUGASSERT(proto == proto_token(proto)); /* Ensure it is tokenized. */
+
for(; *p; p++)
if(proto == *p)
break;