fix #1240: losing host port in har2case

This commit is contained in:
debugtalk
2022-05-03 10:46:05 +08:00
parent fbf236c62f
commit ed4aa4c5b7
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ func (s *tStep) makeRequestURL(entry *Entry) error {
log.Error().Err(err).Msg("make request url failed")
return err
}
s.Request.URL = fmt.Sprintf("%s://%s", u.Scheme, u.Hostname()+u.Path)
s.Request.URL = fmt.Sprintf("%s://%s", u.Scheme, u.Host+u.Path)
return nil
}