Pin SHOUT library at working version

The version we did have has a bug of not importing 'time'.

Remove other vendor'd copy of SHOUT library which may or may not be used.
This commit is contained in:
Bryan Boreham
2020-12-29 23:00:03 +00:00
parent af707fa32f
commit f6eb212ce8
7 changed files with 5 additions and 67 deletions

View File

@@ -25,19 +25,13 @@ func UPCASE(THING_TO_YELL string) (string, error) {
}
READER := bytes.NewReader(ENCODED)
CLIENT := &http.Client{
Timeout:time.Second * 20,
}
// NO TLS, SO MUCH SADNESS.
RESP, ERR := CLIENT.Post("http://API.SHOUTCLOUD.IO/V1/SHOUT",
RESP, ERR := http.Post("http://API.SHOUTCLOUD.IO/V1/SHOUT",
"application/json", READER)
if ERR != nil {
return "", errors.New("REQUEST FAILED CAN'T UPCASE ERROR MESSAGE HALP")
}
defer RESP.Body.Close()
BODYBYTES, ERR := ioutil.ReadAll(RESP.Body)
if ERR != nil {
return "", errors.New("COULDN'T READ BODY HALP")