GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — [Feature] Add Multiple Link Header Support by markekraus · Pull Request #5265 · PowerShell/PowerShell Conversation
|
| $result.Output.RelationLink["last"] | Should BeExactly "http://localhost:8080/PowerShell?test=linkheader&maxlinks=5&linknumber=5" | ||
| } | ||
|
|
||
| # Test pending support for multiple header capable server on Linux/macOS ses issue #4639 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Typo - ses.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
fixed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| _relationLink.Add(rel, absoluteUri.AbsoluteUri.ToString()); | ||
| string url = match.Groups["url"].Value; | ||
| string rel = match.Groups["rel"].Value; | ||
| if (url != String.Empty && rel != String.Empty && !_relationLink.ContainsKey(rel)) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't know if match.Success is true enough to exclude an exception. It seems safer to check String.IsNullOrEmpty() for url and rel.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't know if match.Success
In this instance, it probably is. We are assured a string for both link and pattern so long as we don't mess with the pattern Regex.Match will never except and it true it the 2 indexes will exist in matches.
I agree on the String.IsNullOrEmpty() but the point of this PR is to address the Multiple Link Header issue, not to change this logic. Should that be done in a separate PR?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Doc says that there is no null.
Closed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Link header pagination only parsing first rel
There was an error while loading. Please reload this page.