mirror of https://github.com/gin-gonic/gin.git
Use `Header()` instead of deprecated `HeaderMap` (#2694)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
77649bcfee
commit
7313b8fddc
|
@ -1048,7 +1048,7 @@ func TestContextRenderAttachment(t *testing.T) {
|
|||
|
||||
assert.Equal(t, 200, w.Code)
|
||||
assert.Contains(t, w.Body.String(), "func New() *Engine {")
|
||||
assert.Equal(t, fmt.Sprintf("attachment; filename=\"%s\"", newFilename), w.HeaderMap.Get("Content-Disposition"))
|
||||
assert.Equal(t, fmt.Sprintf("attachment; filename=\"%s\"", newFilename), w.Header().Get("Content-Disposition"))
|
||||
}
|
||||
|
||||
// TestContextRenderYAML tests that the response is serialized as YAML
|
||||
|
|
Loading…
Reference in New Issue