Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7 from SoapyIllusions/patch-1

res.socket is not always defined
  • Loading branch information...
commit 739d4764bc02ad78d9c7f52e4509c72d67b0badc 2 parents 73d1481 + e54b10e
@jed jed authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cookies.js
View
2  lib/cookies.js
@@ -38,7 +38,7 @@ Cookies.prototype = {
var res = this.response
, req = this.request
, headers = res.getHeader( "Set-Cookie" ) || []
- , secure = res.socket.encrypted || req.connection.proxySecure
+ , secure = res.socket ? res.socket.encrypted || req.connection.proxySecure : req.connection.proxySecure
, cookie = new Cookie( name, value, opts )
, header
Please sign in to comment.
Something went wrong with that request. Please try again.