Actions
Bug #2471
closedHttp::Request::cookies() and Http::Request::getCookieValue() do not work
Start date:
11/27/2013
Due date:
% Done:
0%
Estimated time:
Description
Hello!
Http::Request::cookies() and Http::Request::getCookieValue() do not work always return empty result.
Test case attached.
Output:
Cookies: WtTestCookie=ok; test=test
Number of cookies: 0
Number of cookies is expected to return 2.
getCookieValue() returns 0 for any argument.
Best Regards,
Boris Nagaev
Files
Updated by Koen Deforche almost 11 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.3.2
Hey,
That's indeed a bug in Wt. As a workaround, you can call the following function in Wt::Http::Request to parse the "Cookie" header into a map:
static void parseCookies(const std::string& cookie,
std::map<std::string, std::string>& result);
I've fixed this in my working copy.
Regards,
koen
Updated by Koen Deforche almost 11 years ago
- Status changed from Resolved to Closed
Actions