Fixup debug logging of http requests with authentication

This commit is contained in:
Richard Frith-Macdonald 2022-07-27 13:52:01 +01:00
parent e835725b86
commit abd5223579
3 changed files with 35 additions and 2 deletions

View file

@ -593,6 +593,10 @@ debugWrite(GSHTTPURLHandle *handle, NSData *data)
NSEndMapTableEnumeration(&enumerator);
[buf appendBytes: "\r\n" length: 2];
if (masked)
{
[masked appendBytes: "\r\n" length: 2];
}
/*
* Append any data to be sent
@ -600,6 +604,10 @@ debugWrite(GSHTTPURLHandle *handle, NSData *data)
if (wData != nil)
{
[buf appendData: wData];
if (masked)
{
[masked appendData: wData];
}
}
/*