Skip to content

Commit efe7c90

Browse files
authored
Don't include RawUrl in the response (#1397)
1 parent 16b68b6 commit efe7c90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Microsoft.DotNet.XHarness.iOS.Shared/Listeners/SimpleHttpListener.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ private bool Processing(HttpListenerContext context)
125125
break;
126126
default:
127127
Log.WriteLine("Unknown upload url: {0}", request.RawUrl);
128-
response = $"Unknown upload url: {request.RawUrl}"; // CodeQL [SM02175] False Positive: This is a plain-text API response
128+
response = "Unknown upload url";
129+
context.Response.StatusCode = (int)HttpStatusCode.NotFound;
129130
break;
130131
}
131132

0 commit comments

Comments
 (0)