diff --git a/server/client/client.go b/server/client/client.go index 82a99d2f9..c6814f3ba 100644 --- a/server/client/client.go +++ b/server/client/client.go @@ -65,7 +65,10 @@ type Client struct { func NewClient(url string) *Client { url = strings.TrimRight(url, "/") - return &Client{url, url + API_URL_SUFFIX, &http.Client{}, map[string]string{}} + headers := map[string]string{ + "X-Requested-With": "XMLHttpRequest", + } + return &Client{url, url + API_URL_SUFFIX, &http.Client{}, headers} } func (c *Client) DoApiGet(url string, etag string) (*http.Response, error) {