CarloToso

Results 27 issues of CarloToso

# PR Summary Removed `ContentHelper.GetEncoding`, it was never used. Without `ContentHelper.GetEncoding`, `ContentHelper.GetDefaultEncoding` always passes a null string to `ContentHelper.GetEncodingOrDefault`, so it always returns the default encoding. Simplified `ContentHelper.GetDefaultEncoding`. ## PR...

Review - Needed
CL-CodeCleanup
Extra Small

# PR Summary Changes the default charset encoding of webcmdlets from Ascii to UTF8 It's just a small fix, it does not solve BOM related problems #11547 ## PR Context...

WG-Cmdlets-Utility
CL-General
Extra Small

# PR Summary Remove references to PSv2 in `EncodeAndDecode.cs` ## PR Context #18323 ## PR Checklist - [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission) - Use the present tense and imperative...

Review - Needed
CL-CodeCleanup
Medium

# PR Summary Add 308 to possible redirect codes Small cleanup of a nested if ## PR Context ## PR Checklist - [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission) - Use...

Review - Needed
CL-General
Extra Small

### Summary of the new feature / enhancement I was working on the WebCmdlets trying to understand how to fix issue #2896 and it seems that lines 1380-1406 in WebRequestPSCmdlet.Common.cs...

Issue-Enhancement
Needs-Triage

# PR Summary WebCmdlets add -AllowInsecureRedirect switch to enable HTTPS to HTTP redirect. System.Net.Http.HttpClient disables insecure redirects, this PR bypasses the problem, unfortunately at the moment I can't find a...

Extra Small

# PR Summary Small cleanup for better readibility

CL-CodeCleanup
Medium

# PR Summary At the moment https to http redirect fail silently, after this PR it will show an error. ## PR Context ## PR Checklist - [x] [PR has...

Review - Needed
CL-General
Extra Small

# PR Summary - Fix comments - replace if else with switch ## PR Context ## PR Checklist - [ ] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission) - Use the present...

Review - Needed
CL-CodeCleanup
Small

# PR Summary In Invoke-WebRequest and Invoke-RestMethod `-Outfile` only works if you specify a file path After this PR: - If you specify an existing directory, the file will be...

Extra Small