Title: Link Header pagination fails when there's no space between ';' and 'rel' · Issue #5667 · PowerShell/PowerShell · GitHub
Open Graph Title: Link Header pagination fails when there's no space between ';' and 'rel' · Issue #5667 · PowerShell/PowerShell
X Title: Link Header pagination fails when there's no space between ';' and 'rel' · Issue #5667 · PowerShell/PowerShell
Description: If links in a Link header do not contain a space between ; and rel then invoke-webrequest fails to populate the RelationLink property Open Graph Description: If links in a Link header do not contain a space between ; and rel then invoke-webrequest fails to populate the RelationLink property X Description: If links in a Link header do not contain a space between ; and rel then invoke-webrequest fails to populate the RelationLink property <http://localhost:8080/PowerShell?test=linkheader&maxlin...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5667
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Link Header pagination fails when there's no space between ';' and 'rel'","articleBody":"If links in a Link header do not contain a space between `;` and `rel` then invoke-webrequest fails to populate the RelationLink property \r\n```\r\n\u003chttp://localhost:8080/PowerShell?test=linkheader\u0026maxlinks=5\u0026linknumber=1\u003e; rel=\"self\"\r\n\u003chttp://localhost:8080/PowerShell?test=linkheader\u0026maxlinks=5\u0026linknumber=1\u003e;rel=\"self\"\r\n```\r\nNot having a space is valid (more appropriate, even) per the specification: https://tools.ietf.org/html/rfc5988 page 6\r\n\r\n### For reference \r\n #5265 [Feature] Add Multiple Link Header Support \r\n#### Code\r\nhttps://github.com/PowerShell/PowerShell/blob/9e99d596212bc6e2b92af6700889f7698492474d/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/WebRequestPSCmdlet.CoreClr.cs#L835\r\n#### Test\r\nhttps://github.com/PowerShell/PowerShell/blob/9e99d596212bc6e2b92af6700889f7698492474d/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1#L797\r\n\r\nI think the appropriate fix would be to change `\\\\s` to `\\\\s*` to allow for 0 or more whitespace rather than requiring a single whitespace \r\n\r\n- Current regex not working: https://regex101.com/r/QbglHf/1\r\n- Proposed modification: https://regex101.com/r/QbglHf/2\r\n","author":{"url":"https://github.com/cruscio","@type":"Person","name":"cruscio"},"datePublished":"2017-12-11T13:18:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/5667/PowerShell/issues/5667"}
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:a36504cd-0c21-049b-cb31-2ae066bb4c06 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id D4C4:1468A2:6CC2E4:9BBEC6:6A589E96 html-safe-nonce 91128fe1ef7fed57d1d201cbd24c5fe52bd52165e85356668640bd849885b04e visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEM0OjE0NjhBMjo2Q0MyRTQ6OUJCRUM2OjZBNTg5RTk2IiwidmlzaXRvcl9pZCI6IjEyNTU0OTU5MTI1MTM5MDQyNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac dc5438b63a0083c68fba72abed8f205992fafdb36aaef95a2d1cdc6b1a9c76f2 hovercard-subject-tag issue:281013313 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/5667/issue_layout twitter:image https://opengraph.githubassets.com/b05d7bb477cccc9206f765588b2f083cd4c3d82cb056aaa992dca190c3c3603a/PowerShell/PowerShell/issues/5667 twitter:card summary_large_image og:image https://opengraph.githubassets.com/b05d7bb477cccc9206f765588b2f083cd4c3d82cb056aaa992dca190c3c3603a/PowerShell/PowerShell/issues/5667 og:image:alt If links in a Link header do not contain a space between ; and rel then invoke-webrequest fails to populate the RelationLink property og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username cruscio hostname github.com expected-hostname github.com None 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 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 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.