File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ func TestContext(t *testing.T) {
187187 err = c .Attachment ("_fixture/images/walle.png" , "walle.png" )
188188 if assert .NoError (t , err ) {
189189 assert .Equal (t , http .StatusOK , rec .Code )
190- assert .Equal (t , "attachment; filename=walle.png" , rec .Header ().Get (HeaderContentDisposition ))
190+ assert .Equal (t , "attachment; filename=\" walle.png\" " , rec .Header ().Get (HeaderContentDisposition ))
191191 assert .Equal (t , 219885 , rec .Body .Len ())
192192 }
193193
@@ -197,7 +197,7 @@ func TestContext(t *testing.T) {
197197 err = c .Inline ("_fixture/images/walle.png" , "walle.png" )
198198 if assert .NoError (t , err ) {
199199 assert .Equal (t , http .StatusOK , rec .Code )
200- assert .Equal (t , "inline; filename=walle.png" , rec .Header ().Get (HeaderContentDisposition ))
200+ assert .Equal (t , "inline; filename=\" walle.png\" " , rec .Header ().Get (HeaderContentDisposition ))
201201 assert .Equal (t , 219885 , rec .Body .Len ())
202202 }
203203
You can’t perform that action at this time.
0 commit comments