mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
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:
8
vendor/github.com/richo/GOSHOUT/SHOUT.go
generated
vendored
8
vendor/github.com/richo/GOSHOUT/SHOUT.go
generated
vendored
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user