souphttpsrc: do not emit error when connection with unknown size ends
authorBranislav Katreniak <bkatreniak@nuvotechnologies.com>
Wed, 19 Feb 2014 14:19:30 +0000 (15:19 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 19 Feb 2014 15:59:16 +0000 (16:59 +0100)
commit6f1d4da8b43b2392a0c7df3feb2daaa7e7c45964
tree2f3dbc20485d61e0a33266f25992d35f61db275c
parent02e59756a9d91da62a94ae44480b262f1e6205d6
souphttpsrc: do not emit error when connection with unknown size ends

Commit 46fd12ae5ec53200b16dfd7f17048d6bc60fbfbc introduced connection
recovery. But when server does not specify content-size,
souphttpsrc tries to reconnect even after regular end of stream.
Http server replies  with SOUP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE
but souphttpsrc still emits error instead of EOS.

https://bugzilla.gnome.org/show_bug.cgi?id=724717

Signed-off-by: Branislav Katreniak <bkatreniak@nuvotechnologies.com>
ext/soup/gstsouphttpsrc.c