From cff0a27aa038e82d260bec8ce15e30ab0157f9b9 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Fri, 21 Dec 2018 18:07:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9Parse=E6=96=B9=E6=B3=95=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=8A=A5=E9=94=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parse_curl.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/parse_curl.go b/parse_curl.go index 2a06a65..018b848 100644 --- a/parse_curl.go +++ b/parse_curl.go @@ -98,15 +98,7 @@ func (curl *CURL) CreateWorkflow(ses *requests.Session) *requests.Workflow { } // ParseRawCURL curl_bash 可以用trie改进 没空改 -func ParseRawCURL(scurl string) (cURL *CURL, err error) { - - defer func() { - if _err := recover(); _err != nil { - cURL = nil - err = _err.(error) - } - }() - +func ParseRawCURL(scurl string) (cURL *CURL) { executor := newPQueueExecute() curl := New() @@ -153,5 +145,5 @@ func ParseRawCURL(scurl string) (cURL *CURL, err error) { curl.Method = "GET" } - return curl, nil + return curl }