Skip to content

Commit 74fa912

Browse files
authored
Update requester.go
1 parent 6085353 commit 74fa912

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cmd/requester.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ func requestMidPaths(options RequestOptions) {
378378
x := strings.Split(options.uri, "/")
379379
var uripath string
380380

381-
parsedURL := rawurlparser.RawURLParse(options.uri)
381+
parsedURL, err := rawurlparser.RawURLParse(options.uri)
382382
if err != nil {
383383
log.Println(err)
384384
}
@@ -482,11 +482,11 @@ func parseCurlOutput(output string, httpVersion string) Result {
482482
func requestPathCaseSwitching(options RequestOptions) {
483483
color.Cyan("\n━━━━━━━━━━━━ PATH CASE SWITCHING ━━━━━━━━━━━━━")
484484

485-
parsedURL := rawurlparser.RawURLParse(options.uri)
486-
// if err != nil {
487-
// log.Println(err)
488-
// return
489-
// }
485+
parsedURL, err := rawurlparser.RawURLParse(options.uri)
486+
if err != nil {
487+
log.Println(err)
488+
return
489+
}
490490

491491
baseuri := parsedURL.Scheme + "://" + parsedURL.Host
492492
uripath := strings.Trim(parsedURL.Path, "/")

0 commit comments

Comments
 (0)