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)
12
12
13
13
app . Run ( async context =>
14
14
{
15
- context . Response . Headers . Add ( "Content-Type" , "text/html" ) ;
15
+ context . Response . Headers . Append ( "Content-Type" , "text/html" ) ;
16
16
await context . Response . WriteAsync ( @"<html>
17
17
<head>
18
18
<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)
15
15
16
16
app . Run ( async context =>
17
17
{
18
- context . Response . Headers . Add ( HeaderNames . ContentType , MediaTypeNames . Text . Html ) ;
18
+ context . Response . Headers . Append ( HeaderNames . ContentType , MediaTypeNames . Text . Html ) ;
19
19
20
20
await context . Response . WriteAsync ( "<html><body>" ) ;
21
21
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)
13
13
14
14
app . Run ( async context =>
15
15
{
16
- context . Response . Headers . Add ( HeaderNames . ContentType , MediaTypeNames . Text . Html ) ;
16
+ context . Response . Headers . Append ( HeaderNames . ContentType , MediaTypeNames . Text . Html ) ;
17
17
18
18
await context . Response . WriteAsync ( "<html><body>" ) ;
19
19
You can’t perform that action at this time.
0 commit comments