mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
nothing but import format change
Signed-off-by: xuchunming1 <xuchunming@jd.com>
This commit is contained in:
parent
9020c53820
commit
e9dad78ec2
6 changed files with 14 additions and 7 deletions
|
@ -3,12 +3,13 @@ package js
|
|||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/robertkrimen/otto"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/robertkrimen/otto"
|
||||
)
|
||||
|
||||
type httpPackage struct {
|
||||
|
@ -26,7 +27,10 @@ func (c httpPackage) Encode(s string) string {
|
|||
return url.QueryEscape(s)
|
||||
}
|
||||
|
||||
func (c httpPackage) Request(method string, uri string, headers map[string]string, form map[string]string, json string) httpResponse {
|
||||
func (c httpPackage) Request(method string, uri string,
|
||||
headers map[string]string,
|
||||
form map[string]string,
|
||||
json string) httpResponse {
|
||||
var reader io.Reader
|
||||
|
||||
if form != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue