From 49b5ff6b0e691f8d32e7da2898452a0411c94950 Mon Sep 17 00:00:00 2001 From: "Scott Beddall (from Dev Box)" Date: Fri, 9 Feb 2024 13:17:35 -0800 Subject: [PATCH] need to pass the header name, not the value --- .../test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs index 96531205480..430c7cf8b69 100644 --- a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs +++ b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs @@ -202,7 +202,7 @@ public async Task HandleRecordRequestAsync(string recordingId, HttpRequest incom var sanitizers = session.AdditionalSanitizers.Count > 0 ? Sanitizers.Concat(session.AdditionalSanitizers) : Sanitizers; - DebugLogger.LogRequestDetails(incomingRequest, sanitizers); + DebugLogger.LogRequestDetails(incomingRequest, sanitizers, new List() { "x-recording-id" }); (RecordEntry entry, byte[] requestBody) = await CreateEntryAsync(incomingRequest).ConfigureAwait(false); @@ -456,7 +456,7 @@ public async Task HandlePlaybackRequest(string recordingId, HttpRequest incoming var sanitizers = session.AdditionalSanitizers.Count > 0 ? Sanitizers.Concat(session.AdditionalSanitizers) : Sanitizers; - DebugLogger.LogRequestDetails(incomingRequest, sanitizers, new List() { recordingId }); + DebugLogger.LogRequestDetails(incomingRequest, sanitizers, new List() { "x-recording-id" }); var entry = (await CreateEntryAsync(incomingRequest).ConfigureAwait(false)).Item1;