Merge pull request #2166 from juliens/alt-svc

Fix Alt-Svc header
This commit is contained in:
Marten Seemann
2019-10-14 05:17:25 +07:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ func (vn VersionNumber) String() string {
// ToAltSvc returns the representation of the version for the H2 Alt-Svc parameters
func (vn VersionNumber) ToAltSvc() string {
return fmt.Sprintf("%d", vn)
return fmt.Sprintf("%x", uint32(vn))
}
func (vn VersionNumber) isGQUIC() bool {