Subversion Repositories Tewi

Rev

Rev 402 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 402 Rev 407
Line 1... Line 1...
1
/* $Id: server.c 402 2024-11-03 10:39:59Z nishi $ */
1
/* $Id: server.c 407 2024-11-03 13:51:38Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 625... Line 625...
625
				} else if(cm_strcaseequ(req.headers[i], "If-Modified-Since")) {
625
				} else if(cm_strcaseequ(req.headers[i], "If-Modified-Since")) {
626
					struct tm tm;
626
					struct tm tm;
627
					time_t t;
627
					time_t t;
628
					struct tm* btm;
628
					struct tm* btm;
629
					strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
629
					strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
630
#if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__) || defined(__bsdi__) || defined(__amiga__)
630
#if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__) || defined(__bsdi__) || defined(__amiga__) || defined(__sun__)
631
					t = 0;
631
					t = 0;
632
					btm = localtime(&t);
632
					btm = localtime(&t);
633
					cmtime = mktime(&tm);
633
					cmtime = mktime(&tm);
634
					cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
634
					cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
635
#else
635
#else