Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion DevProxy.Proxy.Kestrel/Internal/ProxyConnectionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ private async Task BlindTunnelAsync(Stream clientStream, string host, int port,
private async Task<bool> ExchangeAsync(
Http1ConnectionReader reader, Stream clientStream, ParsedRequestHead head, string absoluteUrl, CancellationToken ct)
{
if (!Uri.TryCreate(absoluteUrl, UriKind.Absolute, out var requestUri))
if (!Uri.TryCreate(absoluteUrl, UriKind.Absolute, out var requestUri)
|| (requestUri.Scheme != "http" && requestUri.Scheme != "https"))
{
await WriteErrorAsync(clientStream, HttpStatusCode.BadRequest, "Malformed request target", ct).ConfigureAwait(false);
return false;
Comment on lines +281 to 285
Expand Down
Loading