changeset 1853:c704f9d730bf libavformat

Close connection on EOF this makes downloading some asx files from MS streaming servers work again (they would hang on eos). The http request header property connection:close is needed for _some_ 1.1 HTTP servers to close the connection at the end of file. patch by Ronald S. Bultje % rbultje A ronald P bitfreak P net% Original thread: Date: Mar 3, 2007 10:48 PM Subject: [Ffmpeg-devel] [PATCH] close connection on end-of-file
author gpoirier
date Sun, 04 Mar 2007 11:59:29 +0000
parents 467a411b5d26
children 0432f6b969b0
files http.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/http.c	Sun Mar 04 11:52:46 2007 +0000
+++ b/http.c	Sun Mar 04 11:59:29 2007 +0000
@@ -221,6 +221,7 @@
              "Range: bytes=%"PRId64"-\r\n"
              "Host: %s\r\n"
              "Authorization: Basic %s\r\n"
+             "Connection: close\r\n"
              "\r\n",
              post ? "POST" : "GET",
              path,