Mercurial > libavformat.hg
comparison http.c @ 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 | a7abdfdb5ed7 |
comparison
equal
deleted
inserted
replaced
| 1852:467a411b5d26 | 1853:c704f9d730bf |
|---|---|
| 219 "User-Agent: %s\r\n" | 219 "User-Agent: %s\r\n" |
| 220 "Accept: */*\r\n" | 220 "Accept: */*\r\n" |
| 221 "Range: bytes=%"PRId64"-\r\n" | 221 "Range: bytes=%"PRId64"-\r\n" |
| 222 "Host: %s\r\n" | 222 "Host: %s\r\n" |
| 223 "Authorization: Basic %s\r\n" | 223 "Authorization: Basic %s\r\n" |
| 224 "Connection: close\r\n" | |
| 224 "\r\n", | 225 "\r\n", |
| 225 post ? "POST" : "GET", | 226 post ? "POST" : "GET", |
| 226 path, | 227 path, |
| 227 LIBAVFORMAT_IDENT, | 228 LIBAVFORMAT_IDENT, |
| 228 s->off, | 229 s->off, |
