diff options
| author | Grace Kloba <klobag@google.com> | 2009-06-29 14:49:10 -0700 |
|---|---|---|
| committer | Grace Kloba <klobag@google.com> | 2009-06-29 14:49:10 -0700 |
| commit | 0b956e1353a691674cb22c899c5a444b92532b60 (patch) | |
| tree | 68af6c6a8ffe7e7bcd2733b791abc3365dfe96bf /core/java/android/webkit/CacheManager.java | |
| parent | 5f9c2ab7a7af192876c690323b84cc099113c2c7 (diff) | |
Add content-disposition into the cache header as it is needed by Flash.
As WebKit is using string version of "expires", pass it with the rest of the headers.
Diffstat (limited to 'core/java/android/webkit/CacheManager.java')
| -rw-r--r-- | core/java/android/webkit/CacheManager.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/webkit/CacheManager.java b/core/java/android/webkit/CacheManager.java index fb9edb9aadc9..9a02fbeecc0a 100644 --- a/core/java/android/webkit/CacheManager.java +++ b/core/java/android/webkit/CacheManager.java @@ -86,6 +86,7 @@ public final class CacheManager { String mimeType; String location; String encoding; + String contentdisposition; // these fields are NOT saved to the database InputStream inStream; @@ -135,6 +136,13 @@ public final class CacheManager { return encoding; } + /** + * @hide Pending API council approval + */ + public String getContentDisposition() { + return contentdisposition; + } + // For out-of-package access to the underlying streams. public InputStream getInputStream() { return inStream; @@ -627,6 +635,11 @@ public final class CacheManager { } } + String contentDisposition = headers.getContentDisposition(); + if (contentDisposition != null) { + ret.contentdisposition = contentDisposition; + } + String lastModified = headers.getLastModified(); if (lastModified != null) ret.lastModified = lastModified; |
