Skip to content

Commit

Permalink
undo conditional extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-hensley committed Sep 18, 2023
1 parent f0ca432 commit bed7b2b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,8 @@ private static void ProcessResult(IAsyncResult asyncResult, AsyncCallback asyncC
else
{
HttpWebResponse response = (HttpWebResponse)result;
bool copyResponse = forceResponseCopy || (asyncCallback == null && isContextAwareResultChecker(asyncResult));

if (copyResponse)
if (forceResponseCopy || (asyncCallback == null && isContextAwareResultChecker(asyncResult)))
{
// For async calls (where asyncResult is ContextAwareResult)...
// If no callback was set assume the user is manually calling BeginGetResponse & EndGetResponse
Expand Down

0 comments on commit bed7b2b

Please sign in to comment.