From 0c3a466805b221a2399c0ee3041384938fcd96b5 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 17 Jul 2017 22:20:40 -0400 Subject: [PATCH] Remove Alternate-Protocol header --- h2quic/server.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/h2quic/server.go b/h2quic/server.go index ebce5dae1..3647dc681 100644 --- a/h2quic/server.go +++ b/h2quic/server.go @@ -260,7 +260,6 @@ func (s *Server) CloseGracefully(timeout time.Duration) error { // SetQuicHeaders can be used to set the proper headers that announce that this server supports QUIC. // The values that are set depend on the port information from s.Server.Addr, and currently look like this (if Addr has port 443): -// Alternate-Protocol: 443:quic // Alt-Svc: quic=":443"; ma=2592000; v="33,32,31,30" func (s *Server) SetQuicHeaders(hdr http.Header) error { port := atomic.LoadUint32(&s.port) @@ -288,7 +287,6 @@ func (s *Server) SetQuicHeaders(hdr http.Header) error { } } - hdr.Add("Alternate-Protocol", fmt.Sprintf("%d:quic", port)) hdr.Add("Alt-Svc", fmt.Sprintf(`quic=":%d"; ma=2592000; v="%s"`, port, s.supportedVersionsAsString)) return nil