summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hjemli <larsh@hal-2004.(none)>2007-01-05 18:18:58 +0100
committerLars Hjemli <larsh@hal-2004.(none)>2007-01-05 18:18:58 +0100
commita6a11125283cd159bbd22e4e3c619bccad1162df (patch)
tree3976dfc63c5fee196b1d5b595de2cf20bd687e6d
parent52e605caf573fa20fdd4fbac5e1cc69b7740b1f5 (diff)
downloadcgit-a6a11125283cd159bbd22e4e3c619bccad1162df.tar.gz
cgit-a6a11125283cd159bbd22e4e3c619bccad1162df.tar.bz2
cgit-a6a11125283cd159bbd22e4e3c619bccad1162df.zip
Use TTL-settings even in nocache mode
In nocace mode an uninitialized ttl-setting was used to generate http-Expires header. Fix it. Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
Diffstat (limited to '')
-rw-r--r--cgit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index fba97d7..5dcba76 100644
--- a/cgit.c
+++ b/cgit.c
@@ -153,6 +153,7 @@ int main(int argc, const char **argv)
cgit_parse_query(cgit_querystring, cgit_querystring_cb);
if (cgit_nocache) {
+ cache_prepare(&item);
item.fd = STDOUT_FILENO;
cgit_fill_cache(&item);
} else {
.py?h=v0.14.1&id=9f720636bbe5db2e0d21fe580357b92e65d7f269&follow=1'>Better sorting of the database types in the preferences.René 'Necoro' Neumann2-6/+6 2010-04-15Add notify-python dependency for the version checkerRené 'Necoro' Neumann1-1/+1 2010-04-15Make the database type choice an info messageRené 'Necoro' Neumann2-7/+13 2010-04-15Renamed es_ES to esRené 'Necoro' Neumann1-0/+0 2010-04-15Fixed dependancy of the new_version plugin from "dev-util/git" to "dev-vcs/gi...Clement Bourgeois1-1/+1 2010-04-14Make some useless info messages being debug statementsRené 'Necoro' Neumann2-34/+17 2010-04-14Improve the C modulesRené 'Necoro' Neumann3-37/+52 2010-04-14Small modifications made to the French translation (typos, grammar).Clement Bourgeois1-69/+69 2010-04-14Fixed the unicode support and stuff ... and also made eix faster :)René 'Necoro' Neumann1-20/+22 2010-04-14Disable debug messages by defaultRené 'Necoro' Neumann1-1/+1 2010-04-13Better eix error inheritance and handlingRené 'Necoro' Neumann1-2/+9 2010-04-13Fix the handling of FilterSets. Fixes bug #558887.René 'Necoro' Neumann2-56/+64 2010-04-12Updated newsRené 'Necoro' Neumann1-0/+1 2010-04-13Added my name to translators list.Clement Bourgeois1-0/+1