This matches the behaviour of the Android Java HTTP stack
Change-Id: I280e524a849dc93bae54795543b1440c3be98c27
{
#if USE(CHROME_NETWORK_STACK)
GURL gurl(jstringToStdString(env, url));
- std::string cookies = WebRequestContext::get(false)->cookie_store()->GetCookieMonster()->GetCookiesWithOptions(gurl, CookieOptions());
+ CookieOptions options;
+ options.set_include_httponly();
+ std::string cookies = WebRequestContext::get(false)->cookie_store()->GetCookieMonster()->GetCookiesWithOptions(gurl, options);
return env->NewStringUTF(cookies.c_str());
#else
// The Android HTTP stack is implemented Java-side.