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 } |