Ignore:
Timestamp:
05/01/11 21:33:13 (9 years ago)
Author:
Admin
Message:

WebIf: Fix external CSS.

File:
1 edited

Legend:

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

    r5154 r5158  
    464464        char buffer[1024];
    465465        int32_t read;
    466 
     466        struct stat st;
     467       
     468        stat(filename, &st);       
    467469        if((fp = fopen(filename, "r"))==NULL) return;
     470        send_headers(f, 200, "OK", NULL, mimetype, 1, st.st_size, 0);
    468471        while((read = fread(buffer,sizeof(char), 1023, fp)) > 0) {
    469             buffer[read] = '\0';
    470             send_headers(f, 200, "OK", NULL, mimetype, 1, strlen(buffer), 0);
     472            buffer[read] = '\0';           
    471473            webif_write(buffer, f);
    472474        }
Note: See TracChangeset for help on using the changeset viewer.