v0.34.0_2
This commit is contained in:
1 parent
0a8bc6f040
commit
434e789144
38 files changed
+899
-238
No files matched your search
@@ -94,11 +94,14 @@ pub(crate) fn compile_backend_with_timeout(
|
||||
connect_timeout,
|
||||
)?
|
||||
};
|
||||
let request_origin = format!("{}://{request_authority}", url.scheme());
|
||||
let request_origin_uri: http::Uri = request_origin.parse()?;
|
||||
Ok(CompiledBackend {
|
||||
address_policy,
|
||||
id: backend.id.clone(),
|
||||
origin: format!("{}://{authority}", url.scheme()),
|
||||
request_origin: format!("{}://{request_authority}", url.scheme()),
|
||||
request_origin,
|
||||
request_origin_uri,
|
||||
host_header: authority.parse()?,
|
||||
preserve_host: backend.preserve_host,
|
||||
protocol: backend.protocol,
|
||||
|
||||
@@ -174,6 +174,8 @@ pub struct CompiledBackend {
|
||||
pub origin: String,
|
||||
/// HTTP request origin. For HTTPS this may carry a separate verified TLS name.
|
||||
pub request_origin: String,
|
||||
/// Parsed once at configuration publish; reused for every upstream request.
|
||||
pub request_origin_uri: http::Uri,
|
||||
pub host_header: HeaderValue,
|
||||
pub preserve_host: bool,
|
||||
pub protocol: UpstreamProtocol,
|
||||
|
||||
Reference in new issue
Block a user