From cf2e64354b9c6d83c8e1b1a712486376c864f73a Mon Sep 17 00:00:00 2001 From: William Floyd Date: Thu, 6 Feb 2025 22:08:10 +0530 Subject: [PATCH] handlers: Add header first. --- handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers.go b/handlers.go index f688146..2222445 100644 --- a/handlers.go +++ b/handlers.go @@ -158,6 +158,7 @@ func (c *Config) HandleAll(w http.ResponseWriter, r *http.Request) { resp := http.Response{} resp.StatusCode = http.StatusOK resp.Body = io.NopCloser(strings.NewReader("Ok.")) + resp.Header = http.Header{} resp.Header.Add("Set-Cookie", "SID=w7UA+CZFdxQZylg0Y6T0Lzx/AQvRHMdV") // Fake it until you make it... c.MakeResponse(nil, &resp, w) } else if strings.HasPrefix(r.URL.Path, "/api/v2/sync/maindata") {