From df48d5ea59e16e960807f6918aed41dbe8ec375a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=83=B3=E5=BD=93=E5=BD=93?= <donghua.yan@alipay.com>
Date: Wed, 29 Oct 2014 10:08:53 +0800
Subject: [PATCH] cookie

---
 package.json | 5 +++--
 proxy.js     | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index 2eb9975..90775a3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "anyproxy",
-  "version": "2.6.0",
+  "version": "2.6.1",
   "description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
   "main": "proxy.js",
   "bin": {
@@ -22,7 +22,8 @@
     "socks5-https-client": "^0.2.2",
     "ws": "^0.4.32",
     "jsdom":"^1.0.3",
-    "jquery":"^2.1.1"
+    "jquery":"^2.1.1",
+    "cookie":"^0.1.2"
   },
   "devDependencies": {},
   "scripts": {
diff --git a/proxy.js b/proxy.js
index a7d2756..3a3d328 100644
--- a/proxy.js
+++ b/proxy.js
@@ -5,6 +5,7 @@ try{
     GLOBAL.util['colorful']         = require("colorful");
     GLOBAL.util['path']             = require("path");
     GLOBAL.util['jsdom']            = require('jsdom');
+    GLOBAL.util['cookie']           = require('cookie');
     GLOBAL.util['jquery']           = require('jquery');
     GLOBAL.util['Socks5ClientHttpAgent']    = require('socks5-http-client/lib/Agent');
     GLOBAL.util['Socks5ClientHttpsAgent']   = require('socks5-https-client/lib/Agent');