From d42e3c40842795858f34c1d7ee142f1d135d204f Mon Sep 17 00:00:00 2001 From: Ryan Kass Date: Sat, 20 Apr 2024 10:49:56 -0400 Subject: [PATCH] add headers --- internal/utils/http/http.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/utils/http/http.go b/internal/utils/http/http.go index fdb1ce5..8733ef1 100644 --- a/internal/utils/http/http.go +++ b/internal/utils/http/http.go @@ -33,6 +33,9 @@ func template(method string, contentType string) func(string, *Req) ([]byte, int req.Header.Add("referrer", "https://resy.com") req.Header.Add("x-origin", "https://resy.com") req.Header.Add("cache-control", "no-cache") + req.Header.Add("accept-encoding", "application/json") + req.Header.Add("acept", "*/*") + req.Header.Add("connection", "keep-alive") client := &http.Client{Timeout: 3 * time.Second} authHeaders := getAuthHeaders() if contentType != "" {