Skip to content

Commit bfc3406

Browse files
committed
Catch all exceptions when adding response headers
1 parent d4dc84b commit bfc3406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AzureHealth.DataServices.Core/Clients/HttpMessageExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static IHttpCustomHeaderCollection AddCustomHeadersToResponse(this HttpRe
101101
response.Headers.Add(header.Name, header.Value);
102102
}
103103
}
104-
catch (ArgumentException)
104+
catch (Exception)
105105
{
106106
errors.Add(header);
107107
}

0 commit comments

Comments
 (0)