| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:aacd22d3-69e3-c2a1-a214-92b37eb15314 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9FC4:1DE205:1272E18:1A56E4E:6A5A1C24 |
| html-safe-nonce | b8088e1dfd81c0bad0864e14e9a1b80429629be440689f23392dea640591cb18 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkM0OjFERTIwNToxMjcyRTE4OjFBNTZFNEU6NkE1QTFDMjQiLCJ2aXNpdG9yX2lkIjoiMjcwMjU0MzAxMzg0MzQ0MjcyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 830fdee595d57323d21e14ab1fb575f6f2b3c0d2ecfc29a2f6a2553c525ac788 |
| hovercard-subject-tag | pull_request:1986410357 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShell/24086/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/3138be2d150abf691ad72623d8234917504f70664c9c4095485eec0bb6ac664c/PowerShell/PowerShell/pull/24086 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3138be2d150abf691ad72623d8234917504f70664c9c4095485eec0bb6ac664c/PowerShell/PowerShell/pull/24086 |
| og:image:alt | PR Summary
Fixes: #15409
When piping the stream is run to the end and the saved file size ends up being 0.
I added checks to see if a pipe was called then rewinded the stream.
If not piping, just s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jshigetomi |
| hostname | github.com |
| expected-hostname | github.com |
| None | e31742e80bbd077fd5679c13ed870ce4e0c13803a2fa5beaae557b6769de2c8a |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c9fcdbf98c619d1561ed843fa01d9766a32b5cd9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/PowerShell/PowerShell/pull/24086#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F24086 |
| 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 |
| 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%2F24086 |
|
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPowerShell |
| Reload | https://github.com/PowerShell/PowerShell/pull/24086 |
| Reload | https://github.com/PowerShell/PowerShell/pull/24086 |
| Reload | https://github.com/PowerShell/PowerShell/pull/24086 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/24086 |
|
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.2k
| https://github.com/PowerShell/PowerShell/issues |
|
Pull requests
287
| 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 |
| daxian-dbw | https://github.com/daxian-dbw |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| jshigetomi:issue-24047-fix | https://github.com/jshigetomi/PowerShell/tree/issue-24047-fix |
| Conversation | https://github.com/PowerShell/PowerShell/pull/24086 |
| Commits3 (3) | https://github.com/PowerShell/PowerShell/pull/24086/commits |
| Checks | https://github.com/PowerShell/PowerShell/pull/24086/checks |
| Files changed | https://github.com/PowerShell/PowerShell/pull/24086/files |
| Fixes Invoke-RestMethod -PassThru -Outfile writing to file. | https://github.com/PowerShell/PowerShell/pull/24086#top |
| daxian-dbw | https://github.com/daxian-dbw |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| jshigetomi:issue-24047-fix | https://github.com/jshigetomi/PowerShell/tree/issue-24047-fix |
|
| https://github.com/jshigetomi |
| jshigetomi | https://github.com/jshigetomi |
| Jul 25, 2024 | https://github.com/PowerShell/PowerShell/pull/24086#issue-2428672033 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/24086 |
| #15409 | https://github.com/PowerShell/PowerShell/issues/15409 |
| #21082 | https://github.com/PowerShell/PowerShell/issues/21082 |
| PR has a meaningful title | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Summarized changes | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Work in Progress | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress |
| Breaking changes | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes |
| Experimental feature(s) needed | https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.5/Microsoft.PowerShell.Core/About/about_Experimental_Features.md |
| Documentation needed | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Make sure you've added a new test if existing tests do not effectively test the code changed | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting |
| PowerShell Editor Services | https://github.com/PowerShell/PowerShellEditorServices |
| PowerShell extension | https://github.com/PowerShell/vscode-powershell |
| PSScriptAnalyzer | https://github.com/PowerShell/PSScriptAnalyzer |
| EditorSyntax | https://github.com/PowerShell/EditorSyntax |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/24086 |
| fix for Invoke-RestMethod -PassThru -Outfile | https://github.com/PowerShell/PowerShell/pull/24086/commits/0f13f452e346211abee02e5dace5665c97a5af46 |
| 0f13f45 | https://github.com/PowerShell/PowerShell/pull/24086/commits/0f13f452e346211abee02e5dace5665c97a5af46 |
| https://github.com/iSazonov |
| iSazonov | https://github.com/iSazonov |
|
Jul 25, 2024
| https://github.com/PowerShell/PowerShell/pull/24086#pullrequestreview-2198271473 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/24086/files/0f13f452e346211abee02e5dace5665c97a5af46 |
| ...erShell.Commands.Utility/commands/utility/WebCmdlet/Common/InvokeRestMethodCommand.Common.cs | https://github.com/PowerShell/PowerShell/pull/24086/files/0f13f452e346211abee02e5dace5665c97a5af46#diff-4c55a0b35ba5ce69067caf76b0b94599e0ff304a67add0636bf226fc1cf0fe0f |
| iSazonov | https://github.com/iSazonov |
| Jul 25, 2024 | https://github.com/PowerShell/PowerShell/pull/24086#discussion_r1690769836 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs | https://github.com/PowerShell/PowerShell/blob/0f13f452e346211abee02e5dace5665c97a5af46/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs#L61-L72 |
| 0f13f45 | https://github.com/PowerShell/PowerShell/commit/0f13f452e346211abee02e5dace5665c97a5af46 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/24086 |
| jshigetomi | https://github.com/jshigetomi |
| Jul 25, 2024 | https://github.com/PowerShell/PowerShell/pull/24086#discussion_r1691681480 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/24086 |
| July 25, 2024 10:28 | https://github.com/PowerShell/PowerShell/pull/24086#commits-pushed-eed11bf |
| Refactored code more similiar to WebRequestObject logic | https://github.com/PowerShell/PowerShell/pull/24086/commits/eed11bf45f7a18bdaa69e2622beff42cd79143e5 |
| eed11bf | https://github.com/PowerShell/PowerShell/pull/24086/commits/eed11bf45f7a18bdaa69e2622beff42cd79143e5 |
| space after if statement | https://github.com/PowerShell/PowerShell/pull/24086/commits/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc |
| 80c28ba | https://github.com/PowerShell/PowerShell/pull/24086/commits/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc |
| https://github.com/jshigetomi |
| jshigetomi | https://github.com/jshigetomi |
| July 25, 2024 15:37 | https://github.com/PowerShell/PowerShell/pull/24086#event-13648462657 |
| https://github.com/daxian-dbw |
| daxian-dbw | https://github.com/daxian-dbw |
|
Aug 1, 2024
| https://github.com/PowerShell/PowerShell/pull/24086#pullrequestreview-2213543293 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc |
| ...erShell.Commands.Utility/commands/utility/WebCmdlet/Common/InvokeRestMethodCommand.Common.cs | https://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc#diff-4c55a0b35ba5ce69067caf76b0b94599e0ff304a67add0636bf226fc1cf0fe0f |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/24086 |
| https://github.com/apps/microsoft-github-policy-service |
| microsoft-github-policy-service | https://github.com/apps/microsoft-github-policy-service |
|
Waiting on Author
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Waiting%20on%20Author%22 |
|
Waiting on Author
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Waiting%20on%20Author%22 |
| Aug 1, 2024 | https://github.com/PowerShell/PowerShell/pull/24086#event-13730068632 |
| https://github.com/daxian-dbw |
| daxian-dbw | https://github.com/daxian-dbw |
|
Aug 5, 2024
| https://github.com/PowerShell/PowerShell/pull/24086#pullrequestreview-2219706743 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc |
| https://github.com/daxian-dbw |
| daxian-dbw | https://github.com/daxian-dbw |
| 13e9aac | https://github.com/PowerShell/PowerShell/commit/13e9aac36fc2854f247f3e861114571a2df4dc40 |
| Aug 5, 2024 | https://github.com/PowerShell/PowerShell/pull/24086#event-13768771258 |
| https://github.com/daxian-dbw |
| daxian-dbw | https://github.com/daxian-dbw |
|
CL-General
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General |
| Aug 5, 2024 | https://github.com/PowerShell/PowerShell/pull/24086#event-13768772249 |
| chrisdent-de | https://github.com/chrisdent-de |
|
Sep 12, 2024
| https://github.com/PowerShell/PowerShell/pull/24086#ref-commit-eaf11fc |
|
| https://github.com/jshigetomi |
|
| https://github.com/chrisdent-de |
| Fix Invoke-RestMethod to allow -PassThru and -Outfile work toge… | https://github.com/chrisdent-de/PowerShell/commit/eaf11fc64969f6fdb9206ad098651f946a87ff09 |
| eaf11fc | https://github.com/chrisdent-de/PowerShell/commit/eaf11fc64969f6fdb9206ad098651f946a87ff09 |
| PowerShell#24086 | https://github.com/PowerShell/PowerShell/pull/24086 |
| https://github.com/jshigetomi |
| jshigetomi | https://github.com/jshigetomi |
| June 25, 2026 17:32 | https://github.com/PowerShell/PowerShell/pull/24086#event-27212794363 |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F24086 |
|
| https://github.com/iSazonov |
|
iSazonov
| https://github.com/iSazonov |
|
| https://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc |
|
| https://github.com/daxian-dbw |
|
daxian-dbw
| https://github.com/daxian-dbw |
|
| https://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc |
|
CL-General
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General |
|
Invoke-RestMethod parameter combination of OutFile/PassThru does not write to file as intended
| https://github.com/PowerShell/PowerShell/issues/15409 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/24086 |
|
| https://github.com/jshigetomi |
|
| https://github.com/daxian-dbw |
|
| https://github.com/iSazonov |
|
| 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 |