Handle new version format

This commit is contained in:
Julien Salleyron
2019-10-13 22:50:53 +02:00
parent ff89d42262
commit 3c08c885ae
2 changed files with 2 additions and 2 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 {