aboutsummaryrefslogtreecommitdiff
path: root/src/capi.c
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-05-29 02:19:08 +0200
committerjcid <devnull@localhost>2008-05-29 02:19:08 +0200
commit1e21147176d202f3c8399c280ca3a6b77f830433 (patch)
tree33dfd52c64dc0fc708391fd143db00150cc2fb14 /src/capi.c
parente4acbd9f0423a47efa7188d801bc58c2bdedf8ba (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.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/capi.c b/src/capi.c
index 70011224..3cb597d9 100644
--- a/src/capi.c
+++ b/src/capi.c
@@ -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, ...)
*/