src/server/safs/objecttype.c

changeset 87
bdec069d2239
parent 77
f1cff81e425a
child 92
382bff43c6eb
equal deleted inserted replaced
86:49bb6c8ceb2b 87:bdec069d2239
57 return REQ_NOACTION; 57 return REQ_NOACTION;
58 } 58 }
59 59
60 // get the mime type for the ext from the server configuration 60 // get the mime type for the ext from the server configuration
61 ServerConfiguration *config = session_get_config(sn); 61 ServerConfiguration *config = session_get_config(sn);
62
63 WS_ASSERT(config);
64 WS_ASSERT(config->mimetypes);
65 WS_ASSERT(config->mimetypes->map);
66
62 char *type = ucx_map_sstr_get(config->mimetypes->map, ext); 67 char *type = ucx_map_sstr_get(config->mimetypes->map, ext);
63 68
64 if(!type) { 69 if(!type) {
65 return REQ_NOACTION; 70 return REQ_NOACTION;
66 } 71 }

mercurial