From 97fbd58bb7a4c2dcf669a6627ea47be76e76c0c8 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 1 Jul 2020 04:17:16 -0400 Subject: [PATCH] testing the headers; can't find remote IP --- tts_service/src/endpoints/speak_with_spectrogram.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tts_service/src/endpoints/speak_with_spectrogram.rs b/tts_service/src/endpoints/speak_with_spectrogram.rs index 6254b2f677..5e24c2ea8f 100644 --- a/tts_service/src/endpoints/speak_with_spectrogram.rs +++ b/tts_service/src/endpoints/speak_with_spectrogram.rs @@ -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()