aboutsummaryrefslogtreecommitdiffstats
path: root/golib
diff options
context:
space:
mode:
Diffstat (limited to 'golib')
-rw-r--r--golib/httpclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/golib/httpclient.go b/golib/httpclient.go
index 9791910..7d3e3c7 100644
--- a/golib/httpclient.go
+++ b/golib/httpclient.go
@@ -254,7 +254,7 @@ func (c *HTTPClient) handleRequest(request *http.Request) (*http.Response, error
// Detect CSR token change
for _, item := range response.Cookies() {
- if item.Name == "CSRF-Token-"+c.id[:5] {
+ if c.id != "" && item.Name == "CSRF-Token-"+c.id[:5] {
c.csrf = item.Value
goto csrffound
}