mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
testing the headers; can't find remote IP
This commit is contained in:
1 parent
4c5d096db7
commit
97fbd58bb7
1 file changed
+4
@@ -72,6 +72,10 @@ pub async fn post_speak_with_spectrogram(request: HttpRequest,
|
||||
.body("Request has empty text.")));
|
||||
}
|
||||
|
||||
for (k, v) in request.headers().iter() {
|
||||
info!("Header: {:?} = {:?}", k, v);
|
||||
}
|
||||
|
||||
// NB: Actually, we want the X-Forwarded-For IP address, since otherwise
|
||||
// we get the load balancer.
|
||||
let ip_address = request.connection_info()
|
||||
|
||||
Reference in new issue
Block a user