Skip to content

Commit

Permalink
Revert "remove url from --set"
Browse files Browse the repository at this point in the history
This reverts commit f44a586.

Since "url" is no longer in the variables array, it is not necessary to
explictly reject it.
  • Loading branch information
emanuele6 authored and bagder committed May 29, 2023
1 parent 33674fe commit 79228d5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions trurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ static void setadd(struct option *o,
const char *set) /* [component]=[data] */
{
struct curl_slist *n;
if(!strncmp("url", set, 3))
errorf(ERROR_SET, "--set does not support url, use --redirect instead");
n = curl_slist_append(o->set_list, set);
if(n)
o->set_list = n;
Expand All @@ -362,8 +360,6 @@ static void iteradd(struct option *o,
const char *iter) /* [component]=[data] */
{
struct curl_slist *n;
if(!strncmp("url", iter, 3))
errorf(ERROR_ITER, "--iterate does not support url");
n = curl_slist_append(o->iter_list, iter);
if(n)
o->iter_list = n;
Expand Down

0 comments on commit 79228d5

Please sign in to comment.