[vlc-commits] HTTP tunnel protocol

Rémi Denis-Courmont git at videolan.org
Tue Jan 5 17:11:19 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec  4 20:06:49 2015 +0200| [80f2d6a71213fb114814b0e616a62b352b7a81a2] | committer: Rémi Denis-Courmont

HTTP tunnel protocol

This implements IETF RFC7639, i.e. the ALPN HTTP header field.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80f2d6a71213fb114814b0e616a62b352b7a81a2
---

 modules/access/http/tunnel.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/http/tunnel.c b/modules/access/http/tunnel.c
index 0bc9401..a5f9e16 100644
--- a/modules/access/http/tunnel.c
+++ b/modules/access/http/tunnel.c
@@ -60,6 +60,7 @@ static struct vlc_http_msg *vlc_http_tunnel_open(struct vlc_http_conn *conn,
     if (unlikely(req == NULL))
         return NULL;
 
+    vlc_http_msg_add_header(req, "ALPN", "h2, http%%2F1.1");
     vlc_http_msg_add_agent(req, PACKAGE_NAME "/" PACKAGE_VERSION);
 
     struct vlc_http_stream *stream = vlc_http_stream_open(conn, req);



More information about the vlc-commits mailing list