summaryrefslogtreecommitdiff
path: root/workhorse/internal/git/blob_test.go
blob: ec28c2adb2f9842e6eedb34f945c9f9160312bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package git

import (
	"net/http/httptest"
	"testing"

	"github.com/stretchr/testify/require"
)

func TestSetBlobHeaders(t *testing.T) {
	w := httptest.NewRecorder()
	w.Header().Set("Set-Cookie", "gitlab_cookie=123456")

	setBlobHeaders(w)

	require.Empty(t, w.Header().Get("Set-Cookie"), "remove Set-Cookie")
}