fix url panic (#3092)

dev
Tarun Koyalwar 2022-12-27 22:41:33 +05:30 committed by GitHub
parent 91f6fdfb36
commit af2aaacbc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func (h *Helper) convertInputToType(input string, inputType inputType, defaultPo
if hasHost {
return host
}
if isURL {
if isURL && uri != nil {
return uri.Hostname()
}
return input