[FFmpeg-devel] [PATCH v1 3/3] avformat/rtsp: Disable send-100-continue for http tunnelling

Jun Li junli1026 at gmail.com
Tue Mar 19 23:58:39 EET 2019


Expect:100-continue is not widely supported by http server,
even less for rtsp servers. Apple's http tunnelling spec does
not have any 100-continue setting. So disable this header.
---
 libavformat/rtsp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 975637cf54..68c9c3ab9b 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1793,6 +1793,7 @@ redirect:
                  sessioncookie);
         av_opt_set(rt->rtsp_hd_out->priv_data, "headers", headers, 0);
         av_opt_set(rt->rtsp_hd_out->priv_data, "chunked_post", "0", 0);
+        av_opt_set(rt->rtsp_hd_out->priv_data, "send_expect_100", "0", 0);
 
         /* Initialize the authentication state for the POST session. The HTTP
          * protocol implementation doesn't properly handle multi-pass
-- 
2.17.1



More information about the ffmpeg-devel mailing list