diff options
Diffstat (limited to 'test/http_test.go')
-rw-r--r-- | test/http_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_test.go b/test/http_test.go index 4541c75b4..3dd9cf751 100644 --- a/test/http_test.go +++ b/test/http_test.go @@ -173,7 +173,7 @@ func TestHTTPPOSTWithoutCSRF(t *testing.T) { } res.Body.Close() hdr := res.Header.Get("Set-Cookie") - id := res.Header.Get("X-Syncthing-ID")[:5] + id := res.Header.Get("X-Syncthing-ID")[:protocol.ShortIDStringLength] if !strings.Contains(hdr, "CSRF-Token") { t.Error("Missing CSRF-Token in", hdr) } |