From 91f5b838f762bef9e4b6e6efc16469c5c32d4f1f Mon Sep 17 00:00:00 2001 From: Medicean Date: Thu, 5 Sep 2019 10:26:33 +0800 Subject: [PATCH] =?UTF-8?q?(Fix:Module)=20fix=20#213=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=8C=85Content-Type=E4=B8=BA=E9=9D=9E?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=97=B6=E8=BF=9E=E6=8E=A5=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ modules/request.js | 1 + package.json | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77c43e6b..1f5545c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### 后端模块 * 修复数据截取 Bug +* 修复返回包`Content-Type`为非文本时连接异常问题 (#213) ### 核心模块 @@ -40,6 +41,7 @@ * `jsp_custom_script_for_mysql` 增加 Version 显示 * windows 下单击鼠标左键 Tray Icon 显示/隐藏 主窗口 改为 「双击」 * 默认设置新增 「使用随机英文单词变量」配置项 +* 移除 shells 目录, 示例脚本已转至 [AwesomeScript](https://github.com/AntSwordProject/AwesomeScript) 仓库下 ## 2019/08/19 `v(2.1.5)` diff --git a/modules/request.js b/modules/request.js index 0af61f52..bd8411d7 100644 --- a/modules/request.js +++ b/modules/request.js @@ -211,6 +211,7 @@ class Request { // 忽略HTTPS .ignoreHTTPS(opts['ignoreHTTPS']) .send(_postarr) + .buffer(true) .parse((res, callback) => { this.parse(opts['tag_s'], opts['tag_e'], (chunk) => { event diff --git a/package.json b/package.json index 22eda985..13d2c179 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antsword", - "version": "2.1.5.1", + "version": "2.1.5.2", "description": "中国蚁剑是一款跨平台的开源网站管理工具", "main": "app.js", "dependencies": {