diff options
author | Lars Lehtonen <lars.lehtonen@gmail.com> | 2020-04-08 16:30:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 19:30:03 -0400 |
commit | c02dee8bc4fbf4aa3afce33f56d1838d5f0c738f (patch) | |
tree | 03487382b06ca171f56df9baa46f03bc4538c80f /integrations | |
parent | 08208cdfb87bc3f0b534eda9d9ef265dcfbc18c3 (diff) | |
download | gitea-c02dee8bc4fbf4aa3afce33f56d1838d5f0c738f.tar.gz gitea-c02dee8bc4fbf4aa3afce33f56d1838d5f0c738f.zip |
integrations: deprecate HeaderMaps (#11018)
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/pull_create_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/integrations/pull_create_test.go b/integrations/pull_create_test.go index d0c78a046c..639e421e0e 100644 --- a/integrations/pull_create_test.go +++ b/integrations/pull_create_test.go @@ -51,7 +51,7 @@ func TestPullCreate(t *testing.T) { resp := testPullCreate(t, session, "user1", "repo1", "master", "This is a pull title") // check the redirected URL - url := resp.HeaderMap.Get("Location") + url := resp.Header().Get("Location") assert.Regexp(t, "^/user2/repo1/pulls/[0-9]*$", url) // check .diff can be accessed and matches performed change @@ -79,7 +79,7 @@ func TestPullCreate_TitleEscape(t *testing.T) { resp := testPullCreate(t, session, "user1", "repo1", "master", "<i>XSS PR</i>") // check the redirected URL - url := resp.HeaderMap.Get("Location") + url := resp.Header().Get("Location") assert.Regexp(t, "^/user2/repo1/pulls/[0-9]*$", url) // Edit title @@ -144,7 +144,7 @@ func TestPullBranchDelete(t *testing.T) { resp := testPullCreate(t, session, "user1", "repo1", "master1", "This is a pull title") // check the redirected URL - url := resp.HeaderMap.Get("Location") + url := resp.Header().Get("Location") assert.Regexp(t, "^/user2/repo1/pulls/[0-9]*$", url) req := NewRequest(t, "GET", url) session.MakeRequest(t, req, http.StatusOK) |