feat: use inFlightUrls for complete s->c
This commit is contained in:
@@ -618,8 +618,8 @@ void TinyMITMProxy::handleClient(SOCKET clientSocket)
|
|||||||
|
|
||||||
if (complete)
|
if (complete)
|
||||||
{
|
{
|
||||||
std::string url = pendingUrls.empty() ? "https://" + host : pendingUrls.front();
|
std::string url = inFlightUrls.empty() ? "https://" + host : inFlightUrls.front();
|
||||||
if (!pendingUrls.empty()) pendingUrls.pop_front();
|
if (!inFlightUrls.empty()) inFlightUrls.pop_front();
|
||||||
std::string respHeaders = serverStream.buffer.substr(0, serverStream.headersEnd + 4);
|
std::string respHeaders = serverStream.buffer.substr(0, serverStream.headersEnd + 4);
|
||||||
|
|
||||||
if (serverStream.statusCode == 101) tunnelMode = true;
|
if (serverStream.statusCode == 101) tunnelMode = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user