summaryrefslogtreecommitdiffstats
path: root/src/shrpx_health_monitor_downstream_connection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/shrpx_health_monitor_downstream_connection.cc')
-rw-r--r--src/shrpx_health_monitor_downstream_connection.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shrpx_health_monitor_downstream_connection.cc b/src/shrpx_health_monitor_downstream_connection.cc
index 89e5396..710de96 100644
--- a/src/shrpx_health_monitor_downstream_connection.cc
+++ b/src/shrpx_health_monitor_downstream_connection.cc
@@ -74,8 +74,7 @@ int HealthMonitorDownstreamConnection::end_upload_data() {
resp.http_status = 200;
- resp.fs.add_header_token(StringRef::from_lit("content-length"),
- StringRef::from_lit("0"), false,
+ resp.fs.add_header_token("content-length"_sr, "0"_sr, false,
http2::HD_CONTENT_LENGTH);
if (upstream->send_reply(downstream_, nullptr, 0) != 0) {