Changeset 375 for trunk/zoo-project/zoo-kernel/service_internal.c
- Timestamp:
- Oct 28, 2012, 2:09:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r365 r375 34 34 #define FALSE -1 35 35 #endif 36 37 void printHeaders(maps* m){ 38 maps *_tmp=getMaps(m,"headers"); 39 if(_tmp!=NULL){ 40 map* _tmp1=_tmp->content; 41 while(_tmp1!=NULL){ 42 printf("%s: %s\r\n",_tmp1->name,_tmp1->value); 43 _tmp1=_tmp1->next; 44 } 45 } 46 } 36 47 37 48 void addLangAttr(xmlNodePtr n,maps *m){ … … 1817 1828 } 1818 1829 1830 printHeaders(m); 1831 1819 1832 if(asRaw==0){ 1820 1833 #ifdef DEBUG … … 2478 2491 int s=stat(cached, &f_status); 2479 2492 if(s==0){ 2493 fprintf(stderr,"FILE SIZE (%d)\n",f_status.st_size/1024); 2480 2494 fcontent=(char*)malloc(sizeof(char)*(f_status.st_size+1)); 2481 FILE* f=fopen(cached,"r ");2495 FILE* f=fopen(cached,"rb"); 2482 2496 fread(fcontent,sizeof(char),f_status.st_size,f); 2483 2497 fsize=f_status.st_size;
Note: See TracChangeset
for help on using the changeset viewer.