Subversion Repositories Tewi

Rev

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

Rev 334 Rev 342
Line 1... Line 1...
1
/* $Id: server.c 334 2024-10-14 18:05:10Z nishi $ */
1
/* $Id: server.c 342 2024-10-14 18:25:41Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 605... Line 605...
605
				} else if(cm_strcaseequ(req.headers[i], "If-Modified-Since")) {
605
				} else if(cm_strcaseequ(req.headers[i], "If-Modified-Since")) {
606
					struct tm tm;
606
					struct tm tm;
607
					time_t t;
607
					time_t t;
608
					struct tm* btm;
608
					struct tm* btm;
609
					strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
609
					strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
610
#if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__)
610
#if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__)
611
					t = 0;
611
					t = 0;
612
					btm = localtime(&t);
612
					btm = localtime(&t);
613
					cmtime = mktime(&tm);
613
					cmtime = mktime(&tm);
614
					cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
614
					cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
615
#else
615
#else