Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:551:    string ext;    if(stringp(sub_id->extension)) {    sub_id->not_query += sub_id->extension;    ext = lower_case(Roxen.extension(sub_id->not_query, sub_id));    }    array(string) tmp=sub_id->conf->type_from_filename(sub_id->not_query, 1, ext);    if(tmp)    res = ([ "file":res, "type":tmp[0], "encoding":tmp[1] ]);    else    res = (["file": res]); +  } else if (!res) { +  res = Roxen.http_status(404, "File not found.");    }    response_headers = sub_id->make_response_headers (res);    destruct (sub_id);    }       return response_headers;    }   }      //! Return the set of properties for @[path].