~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/http/spdy/write.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
func (f *Framer) writeDataFrame(frame *DataFrame) (err os.Error) {
268
268
        // Validate DataFrame
269
269
        if frame.StreamId&0x80000000 != 0 || len(frame.Data) >= 0x0f000000 {
270
 
                return InvalidDataFrame
 
270
                return &Error{InvalidDataFrame, frame.StreamId}
271
271
        }
272
272
 
273
 
        // TODO(willchan): Support data compression.
274
273
        // Serialize frame to Writer
275
274
        if err = binary.Write(f.w, binary.BigEndian, frame.StreamId); err != nil {
276
275
                return