aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-10-25 17:41:45 +0000
committercorvid <corvid@lavabit.com>2009-10-25 17:41:45 +0000
commit197ca82cddf57624632a5e6ede5602e7cc789d2f (patch)
tree78567ca10e4c773c2f54d2dfec9bb14d55f79237 /src
parent5e8ba355cb977334f526f7f26d4ba1ee78853510 (diff)
don't follow redirection when setting Content-Type
When a redirection page comes in, obviously we haven't followed the redirection yet, so we can't find the entry. This meant that the content type from the HTTP header could not be set. This was not so great for my new error message. Maybe circumstances where we'd want to follow the redirection here will reveal themselves, but I'd be surprised.
Diffstat (limited to 'src')
-rw-r--r--src/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index d7376439..302e9bda 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -491,7 +491,7 @@ const char *a_Cache_set_content_type(const DilloUrl *url, const char *ctype,
{
const char *curr;
char *major, *minor, *charset;
- CacheEntry_t *entry = Cache_entry_search_with_redirect(url);
+ CacheEntry_t *entry = Cache_entry_search(url);
dReturn_val_if_fail (entry != NULL, NULL);