Skip to content

Commit baa4a83

Browse files
author
Florentin Thullier
committed
fix another [DEP0066] warning triggered in agent. Still some work needed on tests to support node 12.x
1 parent 69bb855 commit baa4a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spdy/agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ proto._createStream = function _createStream (req, handle) {
248248
return state.connection.reserveStream({
249249
method: req.method,
250250
path: req.path,
251-
headers: req._headers,
251+
headers: req.getHeaders ? req.getHeaders() : req._headers,
252252
host: state.host
253253
}, function (err, stream) {
254254
if (err) {

0 commit comments

Comments
 (0)