Skip to content

Commit b437f45

Browse files
Fix ResponseHeaderFields.ToString() to use Connection property instead of hardcoding Connection: Upgrade
Agent-Logs-Url: https://github.com/webexpress-framework/WebExpress.WebCore/sessions/e8d260a2-11b1-4b7a-a8fc-0c154ce33291 Co-authored-by: ReneSchwarzer <31061438+ReneSchwarzer@users.noreply.github.com>
1 parent 8e68ef2 commit b437f45

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/WebExpress.WebCore/WebMessage/ResponseHeaderFields.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,14 @@ public override string ToString()
136136
sb.AppendLine("Location: " + Location);
137137
}
138138

139+
if (!string.IsNullOrWhiteSpace(Connection))
140+
{
141+
sb.AppendLine("Connection: " + Connection);
142+
}
143+
139144
if (!string.IsNullOrWhiteSpace(Upgrade))
140145
{
141146
sb.AppendLine("Upgrade: " + Upgrade);
142-
sb.AppendLine("Connection: Upgrade");
143147
}
144148

145149
if (!string.IsNullOrWhiteSpace(SecWebSocketAccept))

0 commit comments

Comments
 (0)