|
@@ -287,6 +287,10 @@ func (sc *serverConn) processHeaders(f *HeadersFrame) error {
|
|
|
return sc.processHeaderBlockFragment(f.HeaderBlockFragment(), f.HeadersEnded())
|
|
return sc.processHeaderBlockFragment(f.HeaderBlockFragment(), f.HeadersEnded())
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (sc *serverConn) processContinuation(f *ContinuationFrame) error {
|
|
|
|
|
+ return sc.processHeaderBlockFragment(f.HeaderBlockFragment(), f.HeadersEnded())
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (sc *serverConn) processHeaderBlockFragment(frag []byte, end bool) error {
|
|
func (sc *serverConn) processHeaderBlockFragment(frag []byte, end bool) error {
|
|
|
if _, err := sc.hpackDecoder.Write(frag); err != nil {
|
|
if _, err := sc.hpackDecoder.Write(frag); err != nil {
|
|
|
// TODO: convert to stream error I assume?
|
|
// TODO: convert to stream error I assume?
|
|
@@ -302,10 +306,6 @@ func (sc *serverConn) processHeaderBlockFragment(frag []byte, end bool) error {
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (sc *serverConn) processContinuation(f *ContinuationFrame) error {
|
|
|
|
|
- return sc.processHeaderBlockFragment(f.HeaderBlockFragment(), f.HeadersEnded())
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// ConfigureServer adds HTTP/2 support to a net/http Server.
|
|
// ConfigureServer adds HTTP/2 support to a net/http Server.
|
|
|
//
|
|
//
|
|
|
// The configuration conf may be nil.
|
|
// The configuration conf may be nil.
|