diff options
author | jcid <devnull@localhost> | 2008-05-29 02:19:08 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-05-29 02:19:08 +0200 |
commit | 1e21147176d202f3c8399c280ca3a6b77f830433 (patch) | |
tree | 33dfd52c64dc0fc708391fd143db00150cc2fb14 /src/capi.c | |
parent | e4acbd9f0423a47efa7188d801bc58c2bdedf8ba (diff) |
- Switched from charset to content-type for handling data.
- Fixed data guesser to detect ASCII, LATIN1, UTF8, KOI8-R, CP-1251 as text.
Diffstat (limited to 'src/capi.c')
-rw-r--r-- | src/capi.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -406,6 +406,23 @@ int a_Capi_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize) } /* + * Get the Content-Type associated with the URL + */ +const char *a_Capi_get_content_type(const DilloUrl *url) +{ + return a_Cache_get_content_type(url); +} + +/* + * Set the Content-Type for the URL. + */ +const char *a_Capi_set_content_type(const DilloUrl *url, const char *ctype, + bool_t force) +{ + return a_Cache_set_content_type(url, ctype, force); +} + +/* * Send a dpi cmd. * (For instance: add_bookmark, open_url, send_preferences, ...) */ |