diff --git a/parse_curl.go b/parse_curl.go index 018b848..eba65df 100644 --- a/parse_curl.go +++ b/parse_curl.go @@ -102,6 +102,10 @@ func ParseRawCURL(scurl string) (cURL *CURL) { executor := newPQueueExecute() curl := New() + if len(scurl) <= 4 { + panic("scurl error:" + scurl) + } + if scurl[0] == '"' && scurl[len(scurl)-1] == '"' { scurl = strings.Trim(scurl, `"`) } else if scurl[0] == '\'' && scurl[len(scurl)-1] == '\'' {