зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
42bedd18ce
Коммит
18fbf37a24
|
@ -1,6 +1,11 @@
|
||||||
Version history
|
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) ###
|
### 3.1.0 (2014-12-11) ###
|
||||||
|
|
||||||
* Upgrade to the latest draft: [draft-ietf-httpbis-http2-16]
|
* Upgrade to the latest draft: [draft-ietf-httpbis-http2-16]
|
||||||
|
|
|
@ -1163,7 +1163,11 @@ Compressor.prototype._transform = function _transform(frame, encoding, done) {
|
||||||
if (frame.type === 'HEADERS' || frame.type === 'PUSH_PROMISE') {
|
if (frame.type === 'HEADERS' || frame.type === 'PUSH_PROMISE') {
|
||||||
var buffer = this.compress(frame.headers);
|
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++) {
|
for (var i = 0; i < chunks.length; i++) {
|
||||||
var chunkFrame;
|
var chunkFrame;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "http2",
|
"name": "http2",
|
||||||
"version": "3.1.0",
|
"version": "3.1.1",
|
||||||
"description": "An HTTP/2 client and server implementation",
|
"description": "An HTTP/2 client and server implementation",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"engines" : {
|
"engines" : {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче