summaryrefslogtreecommitdiffstats
path: root/source/core/slang-http.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-04-13 21:53:44 +0800
committerGitHub <noreply@github.com>2023-04-13 09:53:44 -0400
commit6fbd892a0e015fd07d1c41983676713aa6f09333 (patch)
tree1c5719cb60d7bed620a97856ad4358dfe7dd83c6 /source/core/slang-http.cpp
parentca7bf79df3a3f5f4494912cb0572c36662755b9d (diff)
Correct http header construction (#2795)
Previously we were always setting mimeType as "mimeType"
Diffstat (limited to 'source/core/slang-http.cpp')
-rw-r--r--source/core/slang-http.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-http.cpp b/source/core/slang-http.cpp
index 3da22ba9c..58f37666a 100644
--- a/source/core/slang-http.cpp
+++ b/source/core/slang-http.cpp
@@ -170,7 +170,7 @@ void HTTPHeader::append(StringBuilder& out) const
auto mimeType = m_mimeType.getLength() ? m_mimeType : UnownedStringSlice::fromLiteral("text/plain");
auto encoding = m_encoding.getLength() ? m_encoding : UnownedStringSlice::fromLiteral("UTF-8");
- out << "mimeType" << "; ";
+ out << mimeType << "; ";
out << "charset=" << encoding;
out << "\r\n";