~ubuntu-branches/ubuntu/wily/cxxtools/wily-proposed

« back to all changes in this revision

Viewing changes to src/http/chunkedreader.cpp

  • Committer: Package Import Robot
  • Author(s): Kari Pahula
  • Date: 2012-04-28 10:30:29 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120428103029-qc8v0sb4yb8h1542
Tags: 2.1-1
* New upstream release (SONAME 8)
  - Removed patch gcc4.7_ftbfs_fix since upstream source is GCC 4.7 safe.
  - Patches iconvstream_size_t_fix, configure.in_fixes and
    arm_gcc4.6_ftbfs_fix removed since they have been implemented in
    upstream source.
* Standards-Version 3.9.3.
* Use dh-autoreconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
        if (_chunkSize > 0)
204
204
          _state = &ChunkedReader::onData;
205
205
        else
206
 
          _state = 0;
 
206
          _state = &ChunkedReader::onTrailer;
207
207
      }
208
208
      else
209
209
        throwInvalidCharacter(ch);
288
288
        throwInvalidCharacter(ch);
289
289
    }
290
290
 
 
291
    void ChunkedReader::onTrailer()
 
292
    {
 
293
      char ch = _ib->sbumpc();
 
294
      if (ch == '\n')
 
295
        _state = 0;
 
296
      else if (ch == '\r')
 
297
        ;
 
298
      else
 
299
        _state = &ChunkedReader::onTrailerData;
 
300
    }
 
301
 
 
302
    void ChunkedReader::onTrailerData()
 
303
    {
 
304
      // the trailer is actually ignored
 
305
 
 
306
      char ch = _ib->sbumpc();
 
307
      if (ch == '\n')
 
308
        _state = &ChunkedReader::onTrailer;
 
309
    }
 
310
 
291
311
  }
292
312
}