From 0b956e1353a691674cb22c899c5a444b92532b60 Mon Sep 17 00:00:00 2001 From: Grace Kloba Date: Mon, 29 Jun 2009 14:49:10 -0700 Subject: 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. --- core/java/android/webkit/CacheManager.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'core/java/android/webkit/CacheManager.java') 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; -- cgit v1.2.3