File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ static List<FieldInfo> GetConstants(Type type)
1212
1313app . Run ( async context =>
1414{
15- context . Response . Headers . Add ( "Content-Type" , "text/html" ) ;
15+ context . Response . Headers . Append ( "Content-Type" , "text/html" ) ;
1616 await context . Response . WriteAsync ( @"<html>
1717 <head>
1818 <link rel=""stylesheet"" href=""https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.css"" />
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ string GetMime(string ext)
1515
1616app . Run ( async context =>
1717{
18- context . Response . Headers . Add ( HeaderNames . ContentType , MediaTypeNames . Text . Html ) ;
18+ context . Response . Headers . Append ( HeaderNames . ContentType , MediaTypeNames . Text . Html ) ;
1919
2020 await context . Response . WriteAsync ( "<html><body>" ) ;
2121 await context . Response . WriteAsync ( "<h1>Geting MIME type based on a file extension</h1>" ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ static List<FieldInfo> GetConstants(Type type)
1313
1414app . Run ( async context =>
1515{
16- context . Response . Headers . Add ( HeaderNames . ContentType , MediaTypeNames . Text . Html ) ;
16+ context . Response . Headers . Append ( HeaderNames . ContentType , MediaTypeNames . Text . Html ) ;
1717
1818 await context . Response . WriteAsync ( "<html><body>" ) ;
1919
You can’t perform that action at this time.
0 commit comments