Subversion Repositories Tewi

Rev

Rev 303 | Rev 311 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 303 Rev 304
Line 1... Line 1...
1
/* $Id: server.c 303 2024-10-10 02:09:40Z nishi $ */
1
/* $Id: server.c 304 2024-10-10 02:12:51Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 566... Line 566...
566
				} else if(cm_strcaseequ(req.headers[i], "If-Modified-Since")) {
566
				} else if(cm_strcaseequ(req.headers[i], "If-Modified-Since")) {
567
					struct tm tm;
567
					struct tm tm;
568
					time_t t;
568
					time_t t;
569
					struct tm* btm;
569
					struct tm* btm;
570
					strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
570
					strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
571
#if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
571
#if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__)
572
					t = 0;
572
					t = 0;
573
					btm = localtime(&t);
573
					btm = localtime(&t);
574
					cmtime = mktime(&tm);
574
					cmtime = mktime(&tm);
575
					cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
575
					cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
576
#else
576
#else