curl tool: allow negative numbers as option values
Fix the str2num() function to not check if the input string starts with a digit, since strtol() supports numbers prepended with '-' (and '+') too. This makes the --max-redirs option work as documented.
parent
7ed25fcc
Please register or sign in to comment