mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd:Ⓜ️:fed: Fix view pointer to temp rvalue.
This commit is contained in:
parent
a550b5c420
commit
731dd7c1c0
1 changed files with 8 additions and 6 deletions
|
@ -1482,13 +1482,15 @@ ircd::m::fed::request::request(const mutable_buffer &buf_,
|
|||
target
|
||||
};
|
||||
|
||||
// Generate the request head including the X-Matrix into buffer.
|
||||
opts.out.head = opts.request(buf,
|
||||
{
|
||||
// Note that we override the HTTP Host header with the well-known
|
||||
// remote; otherwise default is the destination above which may differ.
|
||||
const http::header addl_headers[]
|
||||
{
|
||||
{ "Host", service(remote)? host(remote): target }
|
||||
});
|
||||
};
|
||||
|
||||
// Generate the request head including the X-Matrix into buffer.
|
||||
opts.out.head = opts.request(buf, addl_headers);
|
||||
|
||||
// Setup some buffering features which can optimize the server::request
|
||||
if(!size(opts.in))
|
||||
|
|
Loading…
Reference in a new issue