diff -r 5f7660fe1562 -r f1cff81e425a src/server/safs/objecttype.c --- a/src/server/safs/objecttype.c Mon Jun 24 14:41:32 2013 +0200 +++ b/src/server/safs/objecttype.c Tue Jun 25 15:45:13 2013 +0200 @@ -36,12 +36,11 @@ int object_type_by_extension(pblock *pb, Session *sn, Request *rq) { sstr_t ppath = sstr(pblock_findkeyval(pb_key_ppath, rq->vars)); - //printf("\nobject_type_by_extension: {%s}[%d]\n\n", ppath); sstr_t ct; if(ppath.ptr[ppath.length - 1] == '/') { - /* directory */ + // directory ct = sstrn("internal/directory", 18); } else { sstr_t ext; @@ -54,11 +53,11 @@ } if(ext.length == 0) { - /* no extension, no type */ + // no extension, no type return REQ_NOACTION; } - /* get the mime type for the ext from the server configuration */ + // get the mime type for the ext from the server configuration ServerConfiguration *config = session_get_config(sn); char *type = ucx_map_sstr_get(config->mimetypes->map, ext);