Changeset 129
- Timestamp:
- 02/15/06 15:44:02 (3 years ago)
- Files:
-
- fastphoto/trunk/src/cache.c (modified) (1 diff)
- fastphoto/trunk/src/cgi.c (modified) (1 diff)
- fastphoto/trunk/src/cgi.h (modified) (1 diff)
- fastphoto/trunk/src/send.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fastphoto/trunk/src/cache.c
r125 r129 71 71 int ret; 72 72 73 if ((ret = file_check (cachefile, &cache_mtime, NULL)) != 1) {73 if ((ret = file_check (cachefile, &cache_mtime, ¶ms->data_size)) != 1) { 74 74 return ret; 75 75 } fastphoto/trunk/src/cgi.c
r125 r129 110 110 content_type_jpeg () 111 111 { 112 puts (CONTENT_TYPE_JPEG); 113 fflush (stdout); 114 return 0; 112 printf (CONTENT_TYPE_JPEG); 113 return 0; 115 114 } 115 116 int 117 content_length (int len) 118 { 119 return printf ("Content-Length: %d\n", len); 120 } 121 122 int 123 cgi_end_headers (void) 124 { 125 putchar('\n'); 126 fflush (stdout); 127 return 0; 128 } fastphoto/trunk/src/cgi.h
r100 r129 5 5 6 6 int content_type_jpeg (void); 7 int content_length (int len); 8 int cgi_end_headers (void); 7 9 8 10 int cgi_init (fastphoto_t * params); fastphoto/trunk/src/send.c
r125 r129 14 14 #endif 15 15 16 #include "cgi.h" 16 17 #include "fastphoto.h" 17 18 … … 81 82 } else { 82 83 fprintf (stderr, "fastphoto: Sending from memory ...\n"); 84 content_length (params->data_size); 85 cgi_end_headers(); 83 86 send_memory (params); 84 87 }
