summaryrefslogtreecommitdiff
path: root/net/icinga2/patches/patch-lib_perfdata_influxdbwriter.cpp
blob: 1eef0746ace92a4f9c3596af42d6d3ac2a393b4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-lib_perfdata_influxdbwriter.cpp,v 1.2 2021/01/17 13:22:26 wiz Exp $

Support Boost 1.74 when setting HTTP headers
Upstream Issue #8185, Pull Request #8575, commit 339b37a985b5f67ce5f0d2e02211d2c5b98a5d45

--- lib/perfdata/influxdbwriter.cpp.orig	2020-08-03 15:43:47.000000000 +0200
+++ lib/perfdata/influxdbwriter.cpp	2021-01-14 19:25:50.874644996 +0100
@@ -505,7 +505,7 @@
 	request.set(http::field::host, url->GetHost() + ":" + url->GetPort());
 
 	request.body() = body;
-	request.set(http::field::content_length, request.body().size());
+	request.content_length(request.body().size());
 
 	try {
 		if (stream.first) {