| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1c07f0c0-3b34-909a-38a7-ae0982563b3b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8054:3017FF:77808C:A822D5:6A57B2B3 |
| html-safe-nonce | 4844baa95d2f15c30d899ea91baf0cd8c58252734af10739df262055d5f48ee6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDU0OjMwMTdGRjo3NzgwOEM6QTgyMkQ1OjZBNTdCMkIzIiwidmlzaXRvcl9pZCI6Ijg2ODc2MjIyNTA1NDIxMTc1NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 79a440e239deedbebe4cb0ba69a9aaadcdeb7748ce56a7337ba7b38ee7d4dd8e |
| hovercard-subject-tag | pull_request:141444422 |
| 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/4853/files |
| twitter:image | https://avatars.githubusercontent.com/u/6509955?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/6509955?s=400&v=4 |
| og:image:alt | Switch the WebResponseObject.Headers Dictionary to initialize once instead of creating a new dictionary on every get. Moved logic to WebResponseHelper.GetHeadersDictionary() as this code will be re... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 899c314dfde9abcf8fc1fe8c04f09866b347ea06f43166d653afc482795c9fca |
| 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 | 67aa73f3bba9e68b2de0ebe01c65fcd120461cba |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/PowerShell/PowerShell/pull/4853/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F4853%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%2F4853%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/4853/files |
| Reload | https://github.com/PowerShell/PowerShell/pull/4853/files |
| Reload | https://github.com/PowerShell/PowerShell/pull/4853/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/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
290
| 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 |
| markekraus:HeadersDictionary | https://github.com/markekraus/PowerShell/tree/HeadersDictionary |
|
Conversation
18
| https://github.com/PowerShell/PowerShell/pull/4853 |
|
Commits
4
| https://github.com/PowerShell/PowerShell/pull/4853/commits |
|
Checks
0
| https://github.com/PowerShell/PowerShell/pull/4853/checks |
|
Files changed
| https://github.com/PowerShell/PowerShell/pull/4853/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
|
Initialize Headers Dictionary Only Once
| https://github.com/PowerShell/PowerShell/pull/4853/files#top |
|
Show all changes
4 commits
| https://github.com/PowerShell/PowerShell/pull/4853/files |
|
ec28224
[Feature] Create Headers Only Once and Only If Called
markekraus Sep 16, 2017
| https://github.com/PowerShell/PowerShell/pull/4853/commits/ec282245c33c51f3204470f0a1591e2533c33fb8 |
|
fa0b8e1
{feature] headers -> _headers
markekraus Sep 16, 2017
| https://github.com/PowerShell/PowerShell/pull/4853/commits/fa0b8e14d468418b50f236759c9853ad69f71271 |
|
e92ceca
[Feature] Move logic to WebResponseObject for reuse
markekraus Sep 17, 2017
| https://github.com/PowerShell/PowerShell/pull/4853/commits/e92ceca64f143774850ed32ebd603a9df32c752f |
|
283bdf4
Add comment to address PR Feedback.
markekraus Sep 18, 2017
| https://github.com/PowerShell/PowerShell/pull/4853/commits/283bdf4b7a7f97689ea5fa4585697cc2b5adae05 |
|
Clear filters
| https://github.com/PowerShell/PowerShell/pull/4853/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
|
WebResponseHelper.CoreClr.cs
| https://github.com/PowerShell/PowerShell/pull/4853/files#diff-09addb89c092e322969b2bb28a2baf1860efe2f984a99d796a2a6bcb38479168 |
|
WebResponseObject.CoreClr.cs
| https://github.com/PowerShell/PowerShell/pull/4853/files#diff-fe6d4633db8f4788387f17e7513a192de1dbc28064e27fd78567a39526d69340 |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7 |
| ...werShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/WebResponseHelper.CoreClr.cs | https://github.com/PowerShell/PowerShell/pull/4853/files#diff-09addb89c092e322969b2bb28a2baf1860efe2f984a99d796a2a6bcb38479168 |
|
View file
| https://github.com/markekraus/PowerShell/blob/283bdf4b7a7f97689ea5fa4585697cc2b5adae05/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/WebResponseHelper.CoreClr.cs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/4853/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/4853/files#diff-09addb89c092e322969b2bb28a2baf1860efe2f984a99d796a2a6bcb38479168 |
|
| https://github.com/PowerShell/PowerShell/pull/4853/files#diff-09addb89c092e322969b2bb28a2baf1860efe2f984a99d796a2a6bcb38479168 |
| iSazonov | https://github.com/iSazonov |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139364309 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| markekraus | https://github.com/markekraus |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139369138 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #4494 | https://github.com/PowerShell/PowerShell/pull/4494 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| iSazonov | https://github.com/iSazonov |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139372151 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #4494 | https://github.com/PowerShell/PowerShell/pull/4494 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| markekraus | https://github.com/markekraus |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139374337 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #4494 | https://github.com/PowerShell/PowerShell/pull/4494 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| iSazonov | https://github.com/iSazonov |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139383586 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| markekraus | https://github.com/markekraus |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139389953 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| daxian-dbw | https://github.com/daxian-dbw |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139481676 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @markekraus | https://github.com/markekraus |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| markekraus | https://github.com/markekraus |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139485062 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @daxian-dbw | https://github.com/daxian-dbw |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| daxian-dbw | https://github.com/daxian-dbw |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139491927 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @markekraus | https://github.com/markekraus |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
| markekraus | https://github.com/markekraus |
| Sep 18, 2017 | https://github.com/PowerShell/PowerShell/pull/4853/files#r139494019 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/4853/files |
|
| https://github.com/PowerShell/PowerShell/pull/4853/files#diff-09addb89c092e322969b2bb28a2baf1860efe2f984a99d796a2a6bcb38479168 |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7 |
| ...werShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/WebResponseObject.CoreClr.cs | https://github.com/PowerShell/PowerShell/pull/4853/files#diff-fe6d4633db8f4788387f17e7513a192de1dbc28064e27fd78567a39526d69340 |
|
View file
| https://github.com/markekraus/PowerShell/blob/283bdf4b7a7f97689ea5fa4585697cc2b5adae05/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/WebResponseObject.CoreClr.cs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/4853/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/4853/files#diff-fe6d4633db8f4788387f17e7513a192de1dbc28064e27fd78567a39526d69340 |
|
| https://github.com/PowerShell/PowerShell/pull/4853/files#diff-fe6d4633db8f4788387f17e7513a192de1dbc28064e27fd78567a39526d69340 |
|
| 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 |