parsav  Diff

Differences From Artifact [675eda18a7]:

To Artifact [b74b4804fc]:


   205    205   		lib.http.header { key = 'Cache-Control', value = 'no-store' },
   206    206   		lib.http.header {
   207    207   			key = 'X-Live-Newest-Artifact';
   208    208   			value = lib.math.decstr(lastup, &nbuf[20]);
   209    209   		},
   210    210   		lib.http.header { key = 'Content-Length', value = '0' }
   211    211   	)
   212         -	if self.live_last ~= 0 and self.live_last <= lastup then
          212  +	if self.live_last ~= 0 and self.live_last >= lastup then
   213    213   		lib.net.mg_printf(self.con, 'HTTP/1.1 %s', lib.http.codestr(200))
   214    214   		for i = 0, [hdrs.type.N] do
   215    215   			lib.net.mg_printf(self.con, '%s: %s\r\n', hdrs[i].key, hdrs[i].value)
   216    216   		end
   217    217   		lib.net.mg_printf(self.con, '\r\n')
   218    218   	else
   219    219   		self:rawpage(200, pg, [lib.mem.ptr(lib.http.header)] {
................................................................................
   258    258   	self:reroute_cookie(dest, &sesskey[0])
   259    259   end
   260    260    
   261    261   terra convo:complain(code: uint16, title: rawstring, msg: rawstring)
   262    262   	if msg == nil then msg = "i'm sorry, dave. i can't let you do that" end
   263    263   
   264    264   	var ti: lib.str.acc ti:compose('error :: ', title)
   265         -	var bo: lib.str.acc bo:compose('<div class="message"><img class="icon" src="/s/warn.webp"><h1>',title,'</h1><p>',msg,'</p></div>')
          265  +	var bo: lib.str.acc bo:compose('<div class="message"><img class="icon" src="/s/warn.svg"><h1>',title,'</h1><p>',msg,'</p></div>')
   266    266   	var body = [convo.page] {
   267    267   		title = ti:finalize();
   268    268   		body = bo:finalize();
   269    269   		class = lib.str.plit 'error';
   270    270   		cache = false;
   271    271   	}
   272    272