http: Refactor http_open_cnx
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 2 Aug 2014 11:29:02 +0000 (13:29 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 3 Aug 2014 21:13:27 +0000 (23:13 +0200)
commit6a463e7fb4f028c52d2e2d054f9483f4fff492bc
tree5c77cbe9cda0bf35e3dc7b453242a8389d5c434b
parentfbc0b8659967ea54a8472b5f795270d38bb085dd
http: Refactor http_open_cnx

Split return value handling from the actual opening.

Incidentally fixes the https -> http redirect issue reported by
Compn on behalf of rcombs.

CC: libav-stable@libav.org
libavformat/http.c