From 3edea11a286e69861fdabd3fefa583d6d19de9d8 Mon Sep 17 00:00:00 2001 From: Ma Bingyao Date: Wed, 15 Jun 2016 11:48:59 +0800 Subject: [PATCH] Fixed #2 --- hprose/_.aau | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hprose/_.aau b/hprose/_.aau index 3aafca7..dee108d 100644 --- a/hprose/_.aau +++ b/hprose/_.aau @@ -14,7 +14,7 @@ * * * Hprose library for AAuto Quicker * * * - * LastModified: Apr 26, 2014 * + * LastModified: Jun 15, 2016 * * Author: Ma Bingyao * * * \**********************************************************/ @@ -1499,7 +1499,9 @@ namespace hprose { for (i = 2; #cookies; 1) { cookieStr = ..string.trim(cookies[[i]]); pos = ..string.indexAny(cookieStr, '='); - cookie[..string.upper(..string.left(cookieStr, pos - 1))] = ..string.right(cookieStr, #cookieStr - pos); + if (pos !== null) { + cookie[..string.upper(..string.left(cookieStr, pos - 1))] = ..string.right(cookieStr, #cookieStr - pos); + } } // Tomcat can return SetCookie2 with path wrapped in " if (cookie['PATH']) { @@ -1733,4 +1735,4 @@ hprose.TcpClient() = !hproseTcpClient. !hproseTcpClient.服务端函数名() = @.__/*服务端函数名*/ hprose.serialize(__) = 序列化,第二个参数表示是否开启简单模式,默认为否 hprose.unserialize(__) = 反序列化,第二个参数表示是否开启简单模式,默认为否 -end intellisense**/ \ No newline at end of file +end intellisense**/