Skip to content

Commit e7090f3

Browse files
committed
remove error
1 parent 2b9a2b9 commit e7090f3

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -768,13 +768,6 @@ internal virtual void ValidateParameters()
768768
ErrorRecord error = GetValidationError(WebCmdletStrings.CredentialConflict, "WebCmdletCredentialConflictException");
769769
ThrowTerminatingError(error);
770770
}
771-
772-
// Method
773-
if (UnixSocket is not null && Socket.OSSupportsUnixDomainSockets is false)
774-
{
775-
ErrorRecord error = GetValidationError(WebCmdletStrings.UnixSocketPlatformNotSupported, "UnixSocketPlatformNotSupportedException");
776-
ThrowTerminatingError(error);
777-
}
778771

779772
// Proxy server
780773
if (ProxyUseDefaultCredentials && ProxyCredential is not null)

src/Microsoft.PowerShell.Commands.Utility/resources/WebCmdletStrings.resx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@
210210
<data name="ThumbprintNotFound" xml:space="preserve">
211211
<value>Unable to retrieve certificates because the thumbprint is not valid. Verify the thumbprint and retry. </value>
212212
</data>
213-
<data name="UnixSocketPlatformNotSupported" xml:space="preserve">
214-
<value>UnixDomainSockets are not supported on this platform. Reissue the command removing the -UnixSocket parameter. </value>
215-
</data>
216213
<data name="WriteRequestComplete" xml:space="preserve">
217214
<value>Web request completed. (Number of bytes processed: {0})</value>
218215
</data>

0 commit comments

Comments
 (0)