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 — Use string_view in CookieParser::before_handle parsing by Sightem · Pull Request #1024 · CrowCpp/Crow Conversation
Contributor
This PR refactors Tested against the original code with around 20 inputs, confirming identical output maps and rejection behavior.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
I tested the implementation against the old one using these: std::vector<std::string> test_cookies = {
// Basic cases
"key=value",
"key1=value1; key2=value2",
" key=value ",
"key = value ; nextkey = anothervalue ",
// Quoted values
"key=\"value\"",
"key=\"\"",
" key = \" spaced value \" ",
"key=\"value with ; inside\"",
"key=\"value with = inside\"",
"key=",
"key=;next=val",
"key= ; next=val",
// Edge cases
"",
"key",
"=",
"=value",
" key = ",
"key=value;"
";key=value",
"key1=value1;;key2=value2",
"key= value ",
"key=\" value \"",
"utf8key=你好世界; other=val",
"special=!@#$%^&*()_+",
"SID=abc; something=\"\"; key3=val3"
}; |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
b7b229e to
7fb3152
Compare
|
OSX uses a newer version of asio which has some deprecated functions removed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
can you rebase the pull request to newest main, there was a problem with deprecated functions in asio, this let all osx builds fail due to a newer version of asio used there. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could you rebase on current master? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7fb3152 to
588bb65
Compare
|
My apologies, github decided to never notify me of these comments |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
no worries, i will also need some time to proceed on it. ;) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
status on this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
Use std::string_view in CookieParser::before_handle
There was an error while loading. Please reload this page.