diff --git a/tracer/src/Datadog.Trace/Util/RequestDataHelper.cs b/tracer/src/Datadog.Trace/Util/RequestDataHelper.cs index d80bc34b3367..95c36499ef52 100644 --- a/tracer/src/Datadog.Trace/Util/RequestDataHelper.cs +++ b/tracer/src/Datadog.Trace/Util/RequestDataHelper.cs @@ -77,7 +77,7 @@ internal static QueryString GetQueryString(HttpRequest request) { return request.Form; } - catch (HttpRequestValidationException) + catch (HttpException) { Log.Debug("Error reading Form (body) from the request."); return null;