Ignore:
Timestamp:
12/01/10 22:29:09 (10 years ago)
Author:
alno
Message:

WebIf: correct mime types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-http-helpers.c

    r4027 r4028  
    433433        FILE *fp;
    434434        char buffer[1024];
    435         memset(buffer, 0, 1024);
    436435
    437436        if((fp = fopen(cfg->http_css,"r"))==NULL) return;
    438         while(fgets(buffer, 1024, fp) != 0) {
    439             webif_write(buffer, f);
    440             memset(buffer, 0, 1024);
    441         }
     437        while(fgets(buffer, 1024, fp) != 0) webif_write(buffer, f);
     438
    442439        fclose (fp);
    443440    } else {
     
    450447        FILE *fp;
    451448        char buffer[1024];
    452         memset(buffer, 0, 1024);
    453449
    454450        if((fp = fopen(cfg->http_jscript,"r"))==NULL) return;
    455         while(fgets(buffer, 1024, fp) != 0) {
    456             webif_write(buffer, f);
    457             memset(buffer, 0, 1024);
    458         }
     451        while(fgets(buffer, 1024, fp) != 0) webif_write(buffer, f);
     452
    459453        fclose (fp);
    460454    } else {
Note: See TracChangeset for help on using the changeset viewer.