Skip to content

Commit

Permalink
switch to spdy-push
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Sep 24, 2014
1 parent 95b33c3 commit 26f938b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var push = require('koa-spdy-push')()
var spdy = require('spdy-push')

var production = process.env.NODE_ENV === 'production'

Expand Down Expand Up @@ -57,7 +57,7 @@ module.exports = function (options) {
var buf = yield polyfill.read(data.name, ext)
headers['content-length'] = buf.length

return push(context, {
return spdy(context.res).push({
path: path,
headers: headers,
body: buf
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"ms": "0",
"polyfills": "1",
"koa-spdy-push": "0"
"spdy-push": "^1.0.0"
},
"devDependencies": {
"koa": "0",
Expand Down

0 comments on commit 26f938b

Please sign in to comment.