molnarg / node-http2

An HTTP/2 client and server implementation for node.js
MIT License
1.78k stars 186 forks source link

Question. About "padding" of framer.js #237

Open castpuz opened 7 years ago

castpuz commented 7 years ago

When frame.data is input, I can see this source code.

frame.data = buffer.slice(dataOffset, -1 * paddingLength);

why are padding leave out?

plus) The other frames have same part, too.