fix(接口测试): curl导出请求方法解析错误

--bug=1046731 --user=王旭 【cURL导入】-DELETE、PATCH、PUT等方法解析错误 https://www.tapd.cn/55049933/s/1581532
This commit is contained in:
WangXu10 2024-09-19 17:53:45 +08:00 committed by Craftsman
parent 9aca625d33
commit 1fe09346a9
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public interface CurlPatternConstants {
/** /**
* HTTP请求方法 * HTTP请求方法
*/ */
Pattern HTTP_METHOD_PATTERN = Pattern.compile("curl\\s+(?:[^\\s]+\\s+)*(-X|--request)\\s+'?(GET|POST)'?"); Pattern HTTP_METHOD_PATTERN = Pattern.compile("curl\\s+(?:[^\\s]+\\s+)*(-X|--request)\\s+'?(GET|POST|PUT|DELETE|PATCH|OPTIONS|HEAD|CONNECT)'?");
/** /**
* 默认HTTP请求方法 * 默认HTTP请求方法