runner-runtime 1.0.78 → 1.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/events/api.js +7 -1
- package/package.json +1 -1
- package/tmp/request.js +2194 -277
package/events/api.js
CHANGED
|
@@ -143,7 +143,13 @@ const convert2PostmanRequest = (request, option) => {
|
|
|
143
143
|
_.set(pmRequest, "protocol", _.get(request, "protocol") || "http/1.1");
|
|
144
144
|
|
|
145
145
|
// 处理 method
|
|
146
|
-
|
|
146
|
+
let method = _.get(request, "method") || "GET";
|
|
147
|
+
|
|
148
|
+
if(_.includes(['CONNECT'],_.toUpper(method))){
|
|
149
|
+
method = 'GET';
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
_.set(pmRequest, "method", method);
|
|
147
153
|
|
|
148
154
|
// 处理认证
|
|
149
155
|
const auth = {};
|