forked from quic-go/quic-go
@@ -1,6 +1,7 @@
|
||||
package h2quic
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"errors"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -64,5 +65,6 @@ func requestFromHeaders(headers []hpack.HeaderField) (*http.Request, error) {
|
||||
ContentLength: contentLength,
|
||||
Host: authority,
|
||||
RequestURI: path,
|
||||
TLS: &tls.ConnectionState{},
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ var _ = Describe("Request", func() {
|
||||
Expect(req.Body).To(BeNil())
|
||||
Expect(req.Host).To(Equal("quic.clemente.io"))
|
||||
Expect(req.RequestURI).To(Equal("/foo"))
|
||||
Expect(req.TLS).ToNot(BeNil())
|
||||
})
|
||||
|
||||
It("concatenates the cookie headers", func() {
|
||||
|
||||
Reference in New Issue
Block a user