Commit 80f2d6a7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

HTTP tunnel protocol

This implements IETF RFC7639, i.e. the ALPN HTTP header field.
parent 3b35c87a
...@@ -60,6 +60,7 @@ static struct vlc_http_msg *vlc_http_tunnel_open(struct vlc_http_conn *conn, ...@@ -60,6 +60,7 @@ static struct vlc_http_msg *vlc_http_tunnel_open(struct vlc_http_conn *conn,
if (unlikely(req == NULL)) if (unlikely(req == NULL))
return NULL; return NULL;
vlc_http_msg_add_header(req, "ALPN", "h2, http%%2F1.1");
vlc_http_msg_add_agent(req, PACKAGE_NAME "/" PACKAGE_VERSION); vlc_http_msg_add_agent(req, PACKAGE_NAME "/" PACKAGE_VERSION);
struct vlc_http_stream *stream = vlc_http_stream_open(conn, req); struct vlc_http_stream *stream = vlc_http_stream_open(conn, req);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment