mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
commit
23d8305e85
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ func (j *JSRequest) ParseForm() map[string]string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (j *JSRequest) ToRequest() (req *http.Request) {
|
func (j *JSRequest) ToRequest() (req *http.Request) {
|
||||||
url := fmt.Sprintf("%s://%s:%s%s?%s", j.Scheme, j.Hostname, j.req.URL.Port(), j.Path, j.Query)
|
url := fmt.Sprintf("%s://%s:%s%s?%s", j.Scheme, j.req.URL.Hostname(), j.req.URL.Port(), j.Path, j.Query)
|
||||||
if j.Body == "" {
|
if j.Body == "" {
|
||||||
req, _ = http.NewRequest(j.Method, url, j.req.Body)
|
req, _ = http.NewRequest(j.Method, url, j.req.Body)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue