tangled
alpha
login
or
join now
ptr.pet
/
Allegedly
forked from
microcosm.blue/Allegedly
0
fork
atom
Server tools to backfill, tail, mirror, and verify PLC logs
0
fork
atom
overview
issues
pulls
pipelines
deubg
bad-example.com
5 months ago
4fabd83f
3501bb73
+7
-2
1 changed file
expand all
collapse all
unified
split
src
mirror.rs
+7
-2
src/mirror.rs
···
236
236
) -> Result<Response> {
237
237
if let Some(expected_domain) = &experimental.acme_domain {
238
238
let Some(found_host) = req.header(HOST) else {
239
239
+
log::debug!(
240
240
+
"expected experimental domain but missing host header. {:?}; {:?}",
241
241
+
req.header(HOST),
242
242
+
req.headers()
243
243
+
);
239
244
return Ok(bad_create_op(&format!(
240
240
-
"missing `Host` header, expected {expected_domain} for experimental requests."
245
245
+
"missing `Host` header, expected {expected_domain:?} for experimental requests."
241
246
)));
242
247
};
243
248
if found_host != expected_domain {
244
249
return Ok(bad_create_op(&format!(
245
245
-
"experimental requests must be made to {expected_domain}, but this request's `Host` header was {found_host}"
250
250
+
"experimental requests must be made to {expected_domain:?}, but this request's `Host` header was {found_host}"
246
251
)));
247
252
}
248
253
}