Skip to content

Commit

Permalink
Merge 35d108a into 635f4ee
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Gallagher committed Oct 14, 2014
2 parents 635f4ee + 35d108a commit a219123
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/com/twitter/hpack/Encoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,8 @@ public void setMaxHeaderTableSize(OutputStream out, int maxHeaderTableSize) thro
if (maxHeaderTableSize < 0) {
throw new IllegalArgumentException("Illegal Capacity: "+ maxHeaderTableSize);
}
int neededSize = size - maxHeaderTableSize;
if (neededSize > 0) {
ensureCapacity(neededSize);
}
this.capacity = maxHeaderTableSize;
ensureCapacity(0);
encodeInteger(out, 0x20, 5, maxHeaderTableSize);
}

Expand Down

0 comments on commit a219123

Please sign in to comment.