| route-pattern | /:user_id/:repository/pull/:id/files/:range(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b3a4a294-d99c-2a7e-35d8-ebf97df99f7a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E4CC:298EBF:35821C9:472666F:6A65525D |
| html-safe-nonce | fa7d5fe65b3af8e3680e95a05adbea84c12f74f23e1c1ef12b0d010ff3876500 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNENDOjI5OEVCRjozNTgyMUM5OjQ3MjY2NkY6NkE2NTUyNUQiLCJ2aXNpdG9yX2lkIjoiMjM5NDY3NDYyOTg3NTk0NjA3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 756fa9d7e19f6a9894957a22b0bcee1ec308358b7c4aadad1cdd0218501a6379 |
| hovercard-subject-tag | pull_request:1219658997 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
| twitter:image | https://avatars.githubusercontent.com/u/105941898?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/105941898?s=400&v=4 |
| og:image:alt | PR Summary
Fix Bug: -OutputFile $null / -OutputFile '' cause -OutputFile to be ignored
FIx Bug: -InFile $null cause -InFile to be ignored
PR Context
Fix #19043
PR Checklist
PR has a mea... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F19044%2Ffiles%2F4e930c0a0d8a146b1aa32098ee79de327802b4cd |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F19044%2Ffiles%2F4e930c0a0d8a146b1aa32098ee79de327802b4cd |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPowerShell |
| Reload | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
| Reload | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
| Reload | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
|
PowerShell
| https://github.com/PowerShell |
| PowerShell | https://github.com/PowerShell/PowerShell |
|
Notifications
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Fork
8.4k
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Star
54.5k
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Code
| https://github.com/PowerShell/PowerShell |
|
Issues
1.3k
| https://github.com/PowerShell/PowerShell/issues |
|
Pull requests
291
| https://github.com/PowerShell/PowerShell/pulls |
|
Discussions
| https://github.com/PowerShell/PowerShell/discussions |
|
Actions
| https://github.com/PowerShell/PowerShell/actions |
|
Projects
| https://github.com/PowerShell/PowerShell/projects |
|
Security and quality
3
| https://github.com/PowerShell/PowerShell/security |
|
Insights
| https://github.com/PowerShell/PowerShell/pulse |
|
Code
| https://github.com/PowerShell/PowerShell |
|
Issues
| https://github.com/PowerShell/PowerShell/issues |
|
Pull requests
| https://github.com/PowerShell/PowerShell/pulls |
|
Discussions
| https://github.com/PowerShell/PowerShell/discussions |
|
Actions
| https://github.com/PowerShell/PowerShell/actions |
|
Projects
| https://github.com/PowerShell/PowerShell/projects |
|
Security and quality
| https://github.com/PowerShell/PowerShell/security |
|
Insights
| https://github.com/PowerShell/PowerShell/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose |
| iSazonov | https://github.com/iSazonov |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| CarloToso:webcmdlets-outfile-not-null-or-empty | https://github.com/CarloToso/PowerShell/tree/webcmdlets-outfile-not-null-or-empty |
|
Conversation
8
| https://github.com/PowerShell/PowerShell/pull/19044 |
|
Commits
9
| https://github.com/PowerShell/PowerShell/pull/19044/commits |
|
Checks
0
| https://github.com/PowerShell/PowerShell/pull/19044/checks |
|
Files changed
| https://github.com/PowerShell/PowerShell/pull/19044/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
|
Add ValidateNotNullOrEmpty to OutFile and InFile parameters of WebCmdlets
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#top |
|
Show all changes
9 commits
| https://github.com/PowerShell/PowerShell/pull/19044/files |
|
85e6240
fix bug
CarloToso Jan 27, 2023
| https://github.com/PowerShell/PowerShell/pull/19044/commits/85e62403209b57a91308e0d244f3bc3ab01b12e5 |
|
519fa57
Add tests if -Outfile is Null Or Empty
CarloToso Jan 28, 2023
| https://github.com/PowerShell/PowerShell/pull/19044/commits/519fa5762eb8a2296f6e885417c062e8d8b0a9ff |
|
c8d1c89
removed wrong line
CarloToso Jan 28, 2023
| https://github.com/PowerShell/PowerShell/pull/19044/commits/c8d1c89a722fdaa1b717506a61fb0604292979c4 |
|
6f01701
fix texts
CarloToso Jan 29, 2023
| https://github.com/PowerShell/PowerShell/pull/19044/commits/6f0170187929acc1866e0e81a551ebde7ba6f9cb |
|
58103c4
better tests
CarloToso Jan 29, 2023
| https://github.com/PowerShell/PowerShell/pull/19044/commits/58103c414fc8f9cb527b1a7cc0ac16ce4d137bfb |
|
bd16ef5
do the same for -InFile
CarloToso Jan 29, 2023
| https://github.com/PowerShell/PowerShell/pull/19044/commits/bd16ef550417afa163837685be84682575eced71 |
|
7f26770
tests with -TestCases
CarloToso Jan 30, 2023
| https://github.com/PowerShell/PowerShell/pull/19044/commits/7f26770034c7e5f07f6af25be5ea84a0eb7821cd |
|
4e930c0
fix
CarloToso Jan 30, 2023
| https://github.com/PowerShell/PowerShell/pull/19044/commits/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
|
a0fd478
Add test for -InFile folder
CarloToso Jan 31, 2023
| https://github.com/PowerShell/PowerShell/pull/19044/commits/a0fd478fd1613b5123545542566cb6b6dd2e27f9 |
|
Clear filters
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
|
WebRequestPSCmdlet.Common.cs
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
WebCmdlets.Tests.ps1
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7 |
| ...owerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
View file
| https://github.com/CarloToso/PowerShell/blob/4e930c0a0d8a146b1aa32098ee79de327802b4cd/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/19044/files/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7 |
| test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
View file
| https://github.com/CarloToso/PowerShell/blob/4e930c0a0d8a146b1aa32098ee79de327802b4cd/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/19044/files/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
| iSazonov | https://github.com/iSazonov |
| Jan 31, 2023 | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#r1091469521 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @CarloToso | https://github.com/CarloToso |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
| CarloToso | https://github.com/CarloToso |
| Jan 31, 2023 | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#r1091798754 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd |
|
| https://github.com/PowerShell/PowerShell/pull/19044/files/4e930c0a0d8a146b1aa32098ee79de327802b4cd#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |