mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +00:00
Fix file blocking issue with webcmdlets (#7676)
This commit is contained in:
1 parent
d487ff9e62
commit
eb92b14433
1 file changed
+1
-1
+1
-1
@@ -1218,7 +1218,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
try
|
||||
{
|
||||
// open the input file
|
||||
SetRequestContent(request, new FileStream(InFile, FileMode.Open));
|
||||
SetRequestContent(request, new FileStream(InFile, FileMode.Open, FileAccess.Read, FileShare.Read));
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user