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