Skip to content

Commit d9c3fa8

Browse files
AcidZealotDharshanBJgladjohnbgavrilMS
authored
Update HttpListenerInterceptor.cs - closing the whole response (#5478)
We have to close the whole response to immediately send it to the browser before we stop HttpListener or the browser will get nothing Co-authored-by: Dharshan BJ <dharshanb@microsoft.com> Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com> Co-authored-by: Bogdan Gavril <bogavril@microsoft.com>
1 parent 787cabf commit d9c3fa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/Microsoft.Identity.Client/Platforms/Features/DefaultOSBrowser/HttpListenerInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private void Respond(Func<AuthorizationResponse, MessageAndHttpCode> responsePro
173173
throw new NotImplementedException("HttpCode not supported" + messageAndCode.HttpCode);
174174
}
175175

176-
context.Response.OutputStream.Close();
176+
context.Response.Close();
177177
}
178178
}
179179
}

0 commit comments

Comments
 (0)