Title: WebCmdlets: WebResponseObject.CoreClr.cs every get on Headers creates a new Dictionary · Issue #3842 · PowerShell/PowerShell · GitHub
Open Graph Title: WebCmdlets: WebResponseObject.CoreClr.cs every get on Headers creates a new Dictionary · Issue #3842 · PowerShell/PowerShell
X Title: WebCmdlets: WebResponseObject.CoreClr.cs every get on Headers creates a new Dictionary · Issue #3842 · PowerShell/PowerShell
Description: The Headers property creates a new Dictionary which then gets populated. Users typically do something like if (obj.Headers.ContainsKey("Something")) { obj.Headers["Something"] ... } which now instantiates a new Dictionary twice, we shoul...
Open Graph Description: The Headers property creates a new Dictionary which then gets populated. Users typically do something like if (obj.Headers.ContainsKey("Something")) { obj.Headers["Something"] ... } which now insta...
X Description: The Headers property creates a new Dictionary which then gets populated. Users typically do something like if (obj.Headers.ContainsKey("Something")) { obj.Headers["Something"] ....
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/3842
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"WebCmdlets: WebResponseObject.CoreClr.cs every get on Headers creates a new Dictionary","articleBody":"The Headers property creates a new Dictionary which then gets populated. Users typically do something like\r\n\r\n```powershell\r\nif (obj.Headers.ContainsKey(\"Something\"))\r\n{\r\n obj.Headers[\"Something\"] ...\r\n}\r\n```\r\n\r\nwhich now instantiates a new Dictionary twice, we should optimize this code. consider using a `ReadOnlyDictionary`","author":{"url":"https://github.com/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2017-05-22T20:27:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/3842/PowerShell/issues/3842"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a42f151c-bd3f-1dbc-0e5a-bcd2d6908ce3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCCC:10E8A4:370260:4AC668:6A57FF78 |
| html-safe-nonce | 8cab8b948211a0f52b874cd9b231152d47f06a7421513204ce72052f8477dd61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0NDOjEwRThBNDozNzAyNjA6NEFDNjY4OjZBNTdGRjc4IiwidmlzaXRvcl9pZCI6IjE1MjY0NDgwMzQ2NjU3MjU4MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c74415cd618fdec7567309ca321373093db59a57778b9691b2d2663c895c2e18 |
| hovercard-subject-tag | issue:230509962 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/3842/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f698ab8d49aac17189cae33767ed2427ebe697be17bb34d7b282cb4da9410e9/PowerShell/PowerShell/issues/3842 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f698ab8d49aac17189cae33767ed2427ebe697be17bb34d7b282cb4da9410e9/PowerShell/PowerShell/issues/3842 |
| og:image:alt | The Headers property creates a new Dictionary which then gets populated. Users typically do something like if (obj.Headers.ContainsKey("Something")) { obj.Headers["Something"] ... } which now insta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SteveL-MSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| turbo-cache-control | no-preview |
| 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 | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width