Changeset 5238
- Timestamp:
- 05/15/11 22:40:10 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-http-helpers.c
r5229 r5238 498 498 pos += snprintf(pos, sizeof(buf)-(pos-buf),"Last-Modified: %s\r\n", timebuf); 499 499 if(content){ 500 uint32_t checksum = (uint32_t)crc32(0L, (uchar *)content, strlen(content));500 uint32_t checksum = (uint32_t)crc32(0L, (uchar *)content, length); 501 501 pos += snprintf(pos, sizeof(buf)-(pos-buf),"ETag: \"%u\"\r\n", checksum==0?1:checksum); 502 502 } … … 581 581 size = strlen(result); 582 582 } 583 if((etagheader == 0 && moddate < modifiedheader) || ( uint32_t)crc32(0L, (uchar *)result, size) == etagheader){583 if((etagheader == 0 && moddate < modifiedheader) || (etagheader > 0 && (uint32_t)crc32(0L, (uchar *)result, size) == etagheader)){ 584 584 send_header304(f); 585 585 } else { -
trunk/oscam-http.h
r5236 r5238 351 351 352 352 #define TPLREFRESH "\ 353 <meta http-equiv=\"refresh\" content=\"##REFRESHTIME##; URL=##REFRESHURL##\" />\n" 353 <script>\n\ 354 <!--\n\ 355 window.onload=setTimeout(function(){window.location.href=\"##REFRESHURL##\"},##REFRESHTIME## * 1000)\n\ 356 //-->\n\ 357 </script> />\n" 354 358 355 359 #define TPLHELPPREFIX "<A HREF=\"http://streamboard.gmc.to/wiki/index.php/OSCam/##LANGUAGE##/Config/oscam."
Note:
See TracChangeset
for help on using the changeset viewer.