| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:efe73341-7b58-b8e0-0de5-ec825826c48a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B386:12115C:2557654:36013A1:6A566D5F |
| html-safe-nonce | 95491b963cdc2af779a9ceafe810045e74cb5fa8d30d60b649d75336c9a7d63b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzg2OjEyMTE1QzoyNTU3NjU0OjM2MDEzQTE6NkE1NjZENUYiLCJ2aXNpdG9yX2lkIjoiNDQzMDc4NzYyODQwNjA0MTk1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bad31fd936141926110bfdbc0dfaf11133dfade27f2b8166161dd954ecd27c93 |
| hovercard-subject-tag | pull_request:1189333619 |
| 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/18902/files |
| 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
The current behaviour of if (keepAuthorization && IsRedirectCode(response.StatusCode) && response.Headers.Location is not null) is wrong, I tested it by setting keepAutho... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bfcd903bf3318822b10b18a6332fac40d3a21f7d94456dca766ab8fa7328068 |
| 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 | 37f446b78ad53e6f593aa1a4243b87c76a3428ab |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/PowerShell/PowerShell/pull/18902/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F18902%2Ffiles |
| 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%2F18902%2Ffiles |
|
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/18902/files |
| Reload | https://github.com/PowerShell/PowerShell/pull/18902/files |
| Reload | https://github.com/PowerShell/PowerShell/pull/18902/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/18902/files |
|
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.4k
| 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 |
| 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:Fix-handleRedirect-with-MaximumRedirection | https://github.com/CarloToso/PowerShell/tree/Fix-handleRedirect-with-MaximumRedirection |
|
Conversation
28
| https://github.com/PowerShell/PowerShell/pull/18902 |
|
Commits
18
| https://github.com/PowerShell/PowerShell/pull/18902/commits |
|
Checks
0
| https://github.com/PowerShell/PowerShell/pull/18902/checks |
|
Files changed
| https://github.com/PowerShell/PowerShell/pull/18902/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/18902/files |
|
Fix bug with managing redirection and keepAuthorization in Web cmdlets
| https://github.com/PowerShell/PowerShell/pull/18902/files#top |
|
Show all changes
18 commits
| https://github.com/PowerShell/PowerShell/pull/18902/files |
|
4ad575b
fix bug with managing redirection
CarloToso Jan 7, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/4ad575b928a0bdf39ccfcd7772d646b9cefd2005 |
|
a1671df
Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Web…
CarloToso Jan 7, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/a1671df522d0ac9624fc5beae5c7b215e20495e4 |
|
8510729
keepAuthorization --> keepAuthorizationOnRedirect
CarloToso Jan 8, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/8510729e91dd07cb66517369037c4f3c07c72370 |
|
e378ef2
remove useless IsPresent
CarloToso Jan 8, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/e378ef2f887d2f49066329dbb3ff7a0e450125ab |
|
2a9f147
missed two keepAuthorizationOnRedirect
CarloToso Jan 8, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/2a9f14741ef1dfe1298b9295e885d3124806b904 |
|
f5b6d1d
bool handleRedirect = keepAuthorizationOnRedirect
CarloToso Jan 8, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/f5b6d1df53d88cf02e33a353db59eb25b0bddfb7 |
|
e48bd39
better handleRedirect if logic
CarloToso Jan 8, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/e48bd3913b339b4791cf6e41de14c05c20f3998c |
|
1345784
revert Resume.IsPresent
CarloToso Jan 8, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/1345784d0156e1f49ac1929ff6cf64fe5c453812 |
|
3ed7bd7
keepAuthorizationOnRedirect --> handleRedirect
CarloToso Jan 8, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/3ed7bd71db7fef87f129eb6ec9c0762576976f4b |
|
c2d3399
add test
CarloToso Jan 11, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/c2d3399c663c265e830c3866fcd3d6cabc1b38f1 |
|
c4ed1b7
Update test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlet…
CarloToso Jan 12, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/c4ed1b714e4e95ed052da7aabc8dee2705fc8bfd |
|
7f5b298
Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Web…
CarloToso Jan 12, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/7f5b29812f60ffd72b22aaf8ce7cad55e1f25120 |
|
7f3fd07
remove comment
CarloToso Jan 12, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/7f3fd07f47311639587b9a7f6bbad50dbee3248e |
|
bcfcfc1
Merge branch 'master' into Fix-handleRedirect-with-MaximumRedirection
CarloToso Jan 12, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/bcfcfc106a94e8d5aeaf4ef44b764853dfbef9a8 |
|
536de9d
Merge branch 'master' into Fix-handleRedirect-with-MaximumRedirection
CarloToso Jan 12, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/536de9ddd9cd3f008c3822b0f103fd16a1f82027 |
|
2771457
reorder keepAuthorizationOnRedirect
CarloToso Jan 12, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/277145766cc847b06f9f385710be1372e6ed68ce |
|
7a8daeb
fix error
CarloToso Jan 12, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/7a8daeb5c1eaec9f95da2137f4daafa42e6a811a |
|
289f5e8
Merge branch 'PowerShell:master' into Fix-handleRedirect-with-Maximum…
CarloToso Jan 13, 2023
| https://github.com/PowerShell/PowerShell/pull/18902/commits/289f5e87a10f6d53f8b3232c025e704b726a6c7d |
|
Clear filters
| https://github.com/PowerShell/PowerShell/pull/18902/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/18902/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/18902/files |
|
WebRequestPSCmdlet.Common.cs
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
WebCmdlets.Tests.ps1
| https://github.com/PowerShell/PowerShell/pull/18902/files#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/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
View file
| https://github.com/CarloToso/PowerShell/blob/289f5e87a10f6d53f8b3232c025e704b726a6c7d/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/18902/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
| iSazonov | https://github.com/iSazonov |
| Jan 12, 2023 | https://github.com/PowerShell/PowerShell/pull/18902/files#r1068421737 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #18546 | https://github.com/PowerShell/PowerShell/pull/18546 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/18902/files |
| CarloToso | https://github.com/CarloToso |
| Jan 13, 2023 | https://github.com/PowerShell/PowerShell/pull/18902/files#r1068838556 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/18902/files |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #18939 | https://github.com/PowerShell/PowerShell/pull/18939 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/18902/files |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-9e8673bc737d91c9712fa4e7e5fef6aac6690999bcbd0777759563afd015c50d |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#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/18902/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
View file
| https://github.com/CarloToso/PowerShell/blob/289f5e87a10f6d53f8b3232c025e704b726a6c7d/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/18902/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/18902/files#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 |