Skip to content

Commit a0fa62f

Browse files
authored
warn when configured header not found (awslabs#479)
1 parent c259bd8 commit a0fa62f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ impl Adapter<HttpConnector, Body> {
321321
if req_headers.contains_key(authorization_source) {
322322
let original = req_headers.remove(authorization_source).unwrap();
323323
req_headers.insert("authorization", original);
324+
} else {
325+
tracing::warn!("\"{}\" header not found in request headers", authorization_source);
324326
}
325327
}
326328

0 commit comments

Comments
 (0)