Bug 958712 part 1/3 - update CI node-http2 to v3.1.1 r=mcmanus

--HG--
extra : rebase_source : 0eeea5f7fd3809d9dbe2a1bed34104ce6336f32a
This commit is contained in:
Nicholas Hurley 2015-01-30 11:15:41 -08:00
parent e82960a677
commit c90e71b450
3 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,11 @@
Version history
===============
### 3.1.1 (2015-01-29) ###
* Bugfix release.
* Fixes an issue sending a push promise that is large enough to fill the frame (#93).
### 3.1.0 (2014-12-11) ###
* Upgrade to the latest draft: [draft-ietf-httpbis-http2-16]

View File

@ -1163,7 +1163,11 @@ Compressor.prototype._transform = function _transform(frame, encoding, done) {
if (frame.type === 'HEADERS' || frame.type === 'PUSH_PROMISE') {
var buffer = this.compress(frame.headers);
var chunks = cut(buffer, MAX_HTTP_PAYLOAD_SIZE);
// This will result in CONTINUATIONs from a PUSH_PROMISE being 4 bytes shorter than they could
// be, but that's not the end of the world, and it prevents us from going over MAX_HTTP_PAYLOAD_SIZE
// on the initial PUSH_PROMISE frame.
var adjustment = frame.type === 'PUSH_PROMISE' ? 4 : 0;
var chunks = cut(buffer, MAX_HTTP_PAYLOAD_SIZE - adjustment);
for (var i = 0; i < chunks.length; i++) {
var chunkFrame;

View File

@ -1,6 +1,6 @@
{
"name": "http2",
"version": "3.1.0",
"version": "3.1.1",
"description": "An HTTP/2 client and server implementation",
"main": "lib/index.js",
"engines" : {