]> git.pld-linux.org Git - packages/ceph.git/blame - boost1.81.patch
- updated to 17.2.7
[packages/ceph.git] / boost1.81.patch
CommitLineData
06e5dbcf
JP
1https://bugs.gentoo.org/887481
2--- a/src/rgw/rgw_asio_client.cc
3+++ b/src/rgw/rgw_asio_client.cc
4@@ -39,11 +39,11 @@
5 const auto& value = header->value();
6
7 if (field == beast::http::field::content_length) {
8- env.set("CONTENT_LENGTH", value.to_string());
9+ env.set("CONTENT_LENGTH", value);
10 continue;
11 }
12 if (field == beast::http::field::content_type) {
13- env.set("CONTENT_TYPE", value.to_string());
14+ env.set("CONTENT_TYPE", value);
15 continue;
16 }
17
18@@ -62,26 +62,26 @@
19 }
20 *dest = '\0';
21
22- env.set(buf, value.to_string());
23+ env.set(buf, value);
24 }
25
26 int major = request.version() / 10;
27 int minor = request.version() % 10;
28 env.set("HTTP_VERSION", std::to_string(major) + '.' + std::to_string(minor));
29
30- env.set("REQUEST_METHOD", request.method_string().to_string());
31+ env.set("REQUEST_METHOD", request.method_string());
32
33 // split uri from query
34 auto uri = request.target();
35 auto pos = uri.find('?');
36 if (pos != uri.npos) {
37 auto query = uri.substr(pos + 1);
38- env.set("QUERY_STRING", query.to_string());
39+ env.set("QUERY_STRING", query);
40 uri = uri.substr(0, pos);
41 }
42- env.set("SCRIPT_URI", uri.to_string());
43+ env.set("SCRIPT_URI", uri);
44
45- env.set("REQUEST_URI", request.target().to_string());
46+ env.set("REQUEST_URI", request.target());
47
48 char port_buf[16];
49 snprintf(port_buf, sizeof(port_buf), "%d", local_endpoint.port());
This page took 0.149319 seconds and 4 git commands to generate.