testing the headers; can't find remote IP

This commit is contained in:
Brandon Thomas committed 2020-07-01 04:17:16 -04:00
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()