1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-02 17:18:31 +00:00

convert httpClient

This commit is contained in:
Kane York 2016-06-02 08:36:02 -07:00
parent cd7faaba38
commit dd9e66c80d
4 changed files with 20 additions and 21 deletions

View file

@ -80,7 +80,7 @@ func SetupServerAndHandle(config *ConfigFile, serveMux *http.ServeMux) {
config.MinMemoryKBytes = defaultMinMemoryKB
}
setupBackend(config)
Backend = setupBackend(config)
if serveMux == nil {
serveMux = http.DefaultServeMux
@ -109,7 +109,7 @@ func SetupServerAndHandle(config *ConfigFile, serveMux *http.ServeMux) {
if err != nil {
log.Fatalln("Unable to seal requests:", err)
}
resp, err := backendHTTPClient.PostForm(announceStartupURL, announceForm)
resp, err := Backend.HTTPClient.PostForm(announceStartupURL, announceForm)
if err != nil {
log.Println("could not announce startup to backend:", err)
} else {