Welcome to mirror list, hosted at ThFree Co, Russian Federation.

blob_test.go « git « internal « workhorse - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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")
}