diff options
author | Kristian Monsen <kristianm@google.com> | 2011-07-22 14:11:31 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2011-07-22 14:11:31 +0100 |
commit | deaba1c70b8ebdd1fffb40665a40e0593bd9cf3e (patch) | |
tree | 9ea17f04569e5e80212c455d3b1098db5df1753d /media/libstagefright/chromium_http | |
parent | 3a1f8a404b38aaa82d57c77cb83e48665e66e553 (diff) | |
download | frameworks_av-deaba1c70b8ebdd1fffb40665a40e0593bd9cf3e.zip frameworks_av-deaba1c70b8ebdd1fffb40665a40e0593bd9cf3e.tar.gz frameworks_av-deaba1c70b8ebdd1fffb40665a40e0593bd9cf3e.tar.bz2 |
Fix for bug 5049763 HLS: Cookies set in main playlist request aren't being passed to subsequent HTTP requests
Cookies should be store between requests in memory with this.
Tell me if you want to store the cookies on disk as well.
Change-Id: I9afe5796a3d395afcf54d669c86cf7da432f8d9a
Diffstat (limited to 'media/libstagefright/chromium_http')
-rw-r--r-- | media/libstagefright/chromium_http/support.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/chromium_http/support.cpp b/media/libstagefright/chromium_http/support.cpp index f4b3668..eb10ab7 100644 --- a/media/libstagefright/chromium_http/support.cpp +++ b/media/libstagefright/chromium_http/support.cpp @@ -25,6 +25,7 @@ #include "android/net/android_network_library_impl.h" #include "base/threading/thread.h" #include "net/base/cert_verifier.h" +#include "net/base/cookie_monster.h" #include "net/base/host_resolver.h" #include "net/base/ssl_config_service.h" #include "net/http/http_auth_handler_factory.h" @@ -140,6 +141,8 @@ SfRequestContext::SfRequestContext() { network_delegate(), net_log(), NULL)); // backend_factory + + set_cookie_store(new net::CookieMonster(NULL, NULL)); } const std::string &SfRequestContext::GetUserAgent(const GURL &url) const { |