remove version 32 from SupportedVersions

This commit is contained in:
Marten Seemann
2016-07-31 15:02:44 +07:00
committed by Lucas Clemente
parent 69302be280
commit ad91d02cbd
4 changed files with 6 additions and 5 deletions

View File

@@ -196,7 +196,7 @@ var _ = Describe("H2 server", func() {
Context("setting http headers", func() {
expected := http.Header{
"Alt-Svc": {`quic=":443"; ma=2592000; v="35,34,33,32"`},
"Alt-Svc": {`quic=":443"; ma=2592000; v="35,34,33"`},
"Alternate-Protocol": {`443:quic`},
}

View File

@@ -20,7 +20,7 @@ const (
// SupportedVersions lists the versions that the server supports
var SupportedVersions = []VersionNumber{
Version32, Version33, Version34, Version35,
Version33, Version34, Version35,
}
// SupportedVersionsAsTags is needed for the SHLO crypto message

View File

@@ -17,11 +17,11 @@ var _ = Describe("Version", func() {
})
It("has proper tag list", func() {
Expect(SupportedVersionsAsTags).To(Equal([]byte("Q032Q033Q034Q035")))
Expect(SupportedVersionsAsTags).To(Equal([]byte("Q033Q034Q035")))
})
It("has proper version list", func() {
Expect(SupportedVersionsAsString).To(Equal("35,34,33,32"))
Expect(SupportedVersionsAsString).To(Equal("35,34,33"))
})
It("recognizes supported versions", func() {

View File

@@ -73,7 +73,8 @@ var _ = Describe("Server", func() {
})
It("closes and deletes sessions", func() {
pheader := []byte{0x09, 0xf6, 0x19, 0x86, 0x66, 0x9b, 0x9f, 0xfa, 0x4c, 0x51, 0x30, 0x33, 0x32, 0x01}
version := 0x34
pheader := []byte{0x09, 0xf6, 0x19, 0x86, 0x66, 0x9b, 0x9f, 0xfa, 0x4c, 0x51, 0x30, 0x33, byte(version), 0x01}
err := server.handlePacket(nil, nil, append(pheader, (&crypto.NullAEAD{}).Seal(nil, nil, 0, pheader)...))
Expect(err).ToNot(HaveOccurred())
Expect(server.sessions).To(HaveLen(1))