From a36654a7d6f6c1a7c212e55ef448142cd2c8d294 Mon Sep 17 00:00:00 2001 From: edoardottt Date: Sun, 2 May 2021 10:17:03 +0200 Subject: [PATCH] update --- crawler/requests.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crawler/requests.go b/crawler/requests.go index 334b250..4231883 100644 --- a/crawler/requests.go +++ b/crawler/requests.go @@ -28,7 +28,8 @@ func GetRequest(target string) (string, error) { //PostRequest performs a POST request and return //a string (the body of the response) //the map in the input should contains the data fields and values -//in this way for example: email: test@example.com, password: stupid_pwd +//in this way for example: +//{ email: test@example.com, password: stupid_pwd } func PostRequest(target string, data map[string]string) (string, error) { postBody, _ := json.Marshal(data) responseBody := bytes.NewBuffer(postBody)