From 1e21147176d202f3c8399c280ca3a6b77f830433 Mon Sep 17 00:00:00 2001 From: jcid Date: Thu, 29 May 2008 02:19:08 +0200 Subject: - Switched from charset to content-type for handling data. - Fixed data guesser to detect ASCII, LATIN1, UTF8, KOI8-R, CP-1251 as text. --- src/cache.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cache.h') diff --git a/src/cache.h b/src/cache.h index 5dee12c1..08932550 100644 --- a/src/cache.h +++ b/src/cache.h @@ -59,6 +59,9 @@ struct _CacheClient { void a_Cache_init(void); int a_Cache_open_url(void *Web, CA_Callback_t Call, void *CbData); int a_Cache_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize); +const char *a_Cache_get_content_type(const DilloUrl *url); +const char *a_Cache_set_content_type(const DilloUrl *url, const char *ctype, + bool_t force); uint_t a_Cache_get_flags(const DilloUrl *url); void a_Cache_process_dbuf(int Op, const char *buf, size_t buf_size, const DilloUrl *Url); -- cgit v1.2.3