Changeset 2293


Ignore:
Timestamp:
2001-04-09T10:07:58+12:00 (23 years ago)
Author:
sjboddie
Message:

Added support for word, pdf and rtf mime types to local library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/cgiwrapper.cpp

    r2286 r2293  
    608608           (ext[2] == 'm' || ext[2] == 'M')) {
    609609      mime = "text/html";
     610    } else if ((ext[0] == 'p' || ext[0] == 'P') &&
     611           (ext[1] == 'd' || ext[1] == 'D') &&
     612           (ext[2] == 'f' || ext[2] == 'F')) {
     613      mime = "application/pdf";
     614    } else if ((ext[0] == 'd' || ext[0] == 'D') &&
     615           (ext[1] == 'o' || ext[1] == 'O') &&
     616           (ext[2] == 'c' || ext[2] == 'C')) {
     617      mime = "application/msword";
     618    } else if ((ext[0] == 'r' || ext[0] == 'R') &&
     619           (ext[1] == 't' || ext[1] == 'T') &&
     620           (ext[2] == 'f' || ext[2] == 'F')) {
     621      mime = "application/rtf";
    610622    }
    611623  } else if (len == 4) {
Note: See TracChangeset for help on using the changeset viewer.