*) better errorhandling in filehandler (try catch block now starts before argument parsing)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2704 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent 1d4fb680ce
commit ce7ee74316

@ -296,9 +296,11 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
this.connectionProperties = conProp;
String path = null;
try {
// getting some connection properties
String method = conProp.getProperty(httpHeader.CONNECTION_PROP_METHOD);
String path = conProp.getProperty(httpHeader.CONNECTION_PROP_PATH);
path = conProp.getProperty(httpHeader.CONNECTION_PROP_PATH);
String argsString = conProp.getProperty(httpHeader.CONNECTION_PROP_ARGS); // is null if no args were given
String httpVersion= conProp.getProperty(httpHeader.CONNECTION_PROP_HTTP_VER);
@ -435,7 +437,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
return;
}
File targetClass=null;
try {
// locate the file
if (!(path.startsWith("/"))) path = "/" + path; // attach leading slash
File targetFile = getLocalizedFile(path);

Loading…
Cancel
Save