summaryrefslogtreecommitdiff
path: root/src/pkg/http/spdy/write.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/spdy/write.go')
-rw-r--r--src/pkg/http/spdy/write.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/http/spdy/write.go b/src/pkg/http/spdy/write.go
index aa1679f1b..7d40bbe9f 100644
--- a/src/pkg/http/spdy/write.go
+++ b/src/pkg/http/spdy/write.go
@@ -267,10 +267,9 @@ func (f *Framer) writeHeadersFrame(frame *HeadersFrame) (err os.Error) {
func (f *Framer) writeDataFrame(frame *DataFrame) (err os.Error) {
// Validate DataFrame
if frame.StreamId&0x80000000 != 0 || len(frame.Data) >= 0x0f000000 {
- return InvalidDataFrame
+ return &Error{InvalidDataFrame, frame.StreamId}
}
- // TODO(willchan): Support data compression.
// Serialize frame to Writer
if err = binary.Write(f.w, binary.BigEndian, frame.StreamId); err != nil {
return