Changeset 2608 for trunk/gsdl/src/recpt/receptionist.cpp
- Timestamp:
- 2001-06-25T16:40:40+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/receptionist.cpp
r2607 r2608 38 38 #include <time.h> 39 39 #include <stdio.h> 40 // following 2 are for printing Last- modified http header.40 // following 2 are for printing Last-Modified http header. 41 41 #include <sys/stat.h> 42 42 #include <time.h> … … 758 758 759 759 // use the later of build.cfg and collect.cfg modification times 760 // as the Last- modified: header, for caching values760 // as the Last-Modified: header, for caching values 761 761 struct stat file_info; 762 762 time_t latest=0; … … 765 765 collectname=args["c"]; 766 766 if (collectname != "") { 767 text_t collectdir=filename_cat("collect",collectname); 767 text_t collectdir=filename_cat(configinfo.gsdlhome,"collect"); 768 collectdir=filename_cat(collectdir,collectname); 768 769 text_t buildcfg=filename_cat(collectdir,"index"); 769 770 buildcfg=filename_cat(buildcfg,"build.cfg"); … … 791 792 // print out modified time, "DDD, dd MMM YYYY hh:mm:ss" format 792 793 // c library takes care of mem for this string... (has \n at end!!!!) 793 contentout << "Last- modified: " << ctime(&latest);794 contentout << "Last-Modified: " << ctime(&latest); 794 795 } 795 796 }
Note:
See TracChangeset
for help on using the changeset viewer.