mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-02 17:18:31 +00:00
convert httpClient
This commit is contained in:
parent
cd7faaba38
commit
dd9e66c80d
4 changed files with 20 additions and 21 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue