Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #113 from jdecuyper/fix-hpack-consumed-bytes
Browse files Browse the repository at this point in the history
HPACK fix for consumed bytes
  • Loading branch information
Lukasa committed Apr 2, 2015
2 parents fe2ce38 + 70a389b commit 2dd7ee6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hyper/http20/hpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def encode_integer(integer, prefix_bits):
This encodes an integer according to the wacky integer encoding rules
defined in the HPACK spec.
"""
log.debug("Encoding %d with %d bits.", integer, prefix_bits)
log.debug("Encoding %d with %d bits", integer, prefix_bits)

max_number = (2 ** prefix_bits) - 1

Expand Down Expand Up @@ -70,7 +70,7 @@ def decode_integer(data, prefix_bits):
number += next_byte * multiple(index)
break

log.debug("Decoded %d consuming %d bytes.", number, index + 1)
log.debug("Decoded %d, consumed %d bytes", number, index + 1)

return (number, index + 1)

Expand Down Expand Up @@ -650,9 +650,9 @@ def _decode_literal(self, data, should_index):
self._add_to_header_table(header)

log.debug(
"Decoded %s, consumed %d, indexed %s",
"Decoded %s, total consumed %d bytes, indexed %s",
header,
consumed,
total_consumed,
should_index
)

Expand Down

0 comments on commit 2dd7ee6

Please sign in to comment.