aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/annex_drop_fails_to_determine_availability_on_a_http_url_redirecting_to_ftp/comment_1_b16b58ac5180be6c7f61a1cf8de55663._comment
blob: 54a670b99af72487285029db7f65839e37b1da59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2016-07-12T20:00:49Z"
 content="""
This only affects http to ftp redirects, because there's a special hack
in place to use curl to check if a ftp url exists.

Seems that http-conduit throws a StatusCodeException with statusCode = 302
when it is redirected to a protocol that it does not support, such as ftp.

So, it can catch that exception and fall back to curl.
"""]]