mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
rename the wire.InvariantHeader to Header
This commit is contained in:
parent
bf96707f48
commit
7b91ba56b6
8 changed files with 178 additions and 178 deletions
|
@ -99,11 +99,11 @@ var _ = Describe("Server", func() {
|
|||
})
|
||||
|
||||
parseHeader := func(data []byte) *wire.ExtendedHeader {
|
||||
iHdr, err := wire.ParseInvariantHeader(bytes.NewReader(data), 0)
|
||||
hdr, err := wire.ParseHeader(bytes.NewReader(data), 0)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
hdr, err := iHdr.Parse(bytes.NewReader(data), protocol.VersionTLS)
|
||||
extHdr, err := hdr.Parse(bytes.NewReader(data), protocol.VersionTLS)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
return hdr
|
||||
return extHdr
|
||||
}
|
||||
|
||||
It("drops Initial packets with a too short connection ID", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue