mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibWeb: Store cookies for every HTTP response
As per Fetch, we are supposed to store cookies from Set-Cookie as soon as we receive response headers for any HTTP response, even in error cases. Required by Twitter to login, as it sets cookies via XHR.
This commit is contained in:
parent
c9d434247d
commit
6d188d72c0
3 changed files with 25 additions and 27 deletions
|
@ -47,8 +47,6 @@ private:
|
|||
void load_favicon(RefPtr<Gfx::Bitmap> bitmap = nullptr);
|
||||
bool parse_document(DOM::Document&, ByteBuffer const& data);
|
||||
|
||||
void store_response_cookies(AK::URL const& url, DeprecatedString const& cookies);
|
||||
|
||||
HTML::BrowsingContext& m_browsing_context;
|
||||
size_t m_redirects_count { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue