diff mbox

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

Message ID 20190319215839.32193-4-junli1026@gmail.com
State New
Headers show

Commit Message

Jun Li March 19, 2019, 9:58 p.m. UTC
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 mbox

Patch

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