Skip to content

Commit

Permalink
Merge pull request #274 from carlor/add_chunk_ext
Browse files Browse the repository at this point in the history
Allow for RFC 2616 chunk extensions
  • Loading branch information
s-ludwig committed Aug 1, 2013
2 parents 63d687d + f88e239 commit a99e480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/vibe/http/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ final class ChunkedInputStream : InputStream {
{
// read chunk header
logTrace("read next chunk header");
auto ln = m_in.readLine();
ulong sz = toImpl!ulong(cast(string)ln, 16u);
auto ln = cast(string)m_in.readLine();
ulong sz = parse!ulong(ln, 16u);
m_bytesInCurrentChunk = sz;

if( m_bytesInCurrentChunk == 0 ){
Expand Down

0 comments on commit a99e480

Please sign in to comment.