]> granicus.if.org Git - curl/commit
tool_operate: Fix retry on FTP 4xx to ignore other protocols
authorStefan Agner <stefan@agner.ch>
Fri, 6 Apr 2018 19:00:02 +0000 (21:00 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 7 Apr 2018 06:57:57 +0000 (02:57 -0400)
commit464a019cbe028f1e0a85a6bd4631e41411b0d32d
tree922b1cb7df769336b4090678e41c8f44a9f2ab84
parentdd03e8c281582af454fabfb4a666a5b232d518aa
tool_operate: Fix retry on FTP 4xx to ignore other protocols

Only treat response code as FTP response codes in case the
protocol type is FTP.

This fixes an issue where an HTTP download was treated as FTP
in case libcurl returned with 33. This happens when the
download has already finished and the server responses 416:
  HTTP/1.1 416 Requested Range Not Satisfiable

This should not be treated as an FTP error.

Fixes #2464
Closes #2465
src/tool_operate.c