Skip to content

Commit c02dee8

Browse files
authored
integrations: deprecate HeaderMaps (#11018)
1 parent 08208cd commit c02dee8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integrations/pull_create_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func TestPullCreate(t *testing.T) {
5151
resp := testPullCreate(t, session, "user1", "repo1", "master", "This is a pull title")
5252

5353
// check the redirected URL
54-
url := resp.HeaderMap.Get("Location")
54+
url := resp.Header().Get("Location")
5555
assert.Regexp(t, "^/user2/repo1/pulls/[0-9]*$", url)
5656

5757
// check .diff can be accessed and matches performed change
@@ -79,7 +79,7 @@ func TestPullCreate_TitleEscape(t *testing.T) {
7979
resp := testPullCreate(t, session, "user1", "repo1", "master", "<i>XSS PR</i>")
8080

8181
// check the redirected URL
82-
url := resp.HeaderMap.Get("Location")
82+
url := resp.Header().Get("Location")
8383
assert.Regexp(t, "^/user2/repo1/pulls/[0-9]*$", url)
8484

8585
// Edit title
@@ -144,7 +144,7 @@ func TestPullBranchDelete(t *testing.T) {
144144
resp := testPullCreate(t, session, "user1", "repo1", "master1", "This is a pull title")
145145

146146
// check the redirected URL
147-
url := resp.HeaderMap.Get("Location")
147+
url := resp.Header().Get("Location")
148148
assert.Regexp(t, "^/user2/repo1/pulls/[0-9]*$", url)
149149
req := NewRequest(t, "GET", url)
150150
session.MakeRequest(t, req, http.StatusOK)

0 commit comments

Comments
 (0)