|
|
@ -296,9 +296,11 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
|
|
|
|
|
|
|
|
|
|
|
|
this.connectionProperties = conProp;
|
|
|
|
this.connectionProperties = conProp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String path = null;
|
|
|
|
|
|
|
|
try {
|
|
|
|
// getting some connection properties
|
|
|
|
// getting some connection properties
|
|
|
|
String method = conProp.getProperty(httpHeader.CONNECTION_PROP_METHOD);
|
|
|
|
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 argsString = conProp.getProperty(httpHeader.CONNECTION_PROP_ARGS); // is null if no args were given
|
|
|
|
String httpVersion= conProp.getProperty(httpHeader.CONNECTION_PROP_HTTP_VER);
|
|
|
|
String httpVersion= conProp.getProperty(httpHeader.CONNECTION_PROP_HTTP_VER);
|
|
|
|
|
|
|
|
|
|
|
@ -377,10 +379,10 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
|
|
|
|
length = -1;
|
|
|
|
length = -1;
|
|
|
|
gzipBody = new GZIPInputStream(body);
|
|
|
|
gzipBody = new GZIPInputStream(body);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// } else {
|
|
|
|
// } else {
|
|
|
|
// httpd.sendRespondError(conProp,out,4,403,null,"bad post values",null);
|
|
|
|
// httpd.sendRespondError(conProp,out,4,403,null,"bad post values",null);
|
|
|
|
// return;
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// if its a POST, it can be either multipart or as args in the body
|
|
|
|
// if its a POST, it can be either multipart or as args in the body
|
|
|
|
if ((requestHeader.containsKey(httpHeader.CONTENT_TYPE)) &&
|
|
|
|
if ((requestHeader.containsKey(httpHeader.CONTENT_TYPE)) &&
|
|
|
@ -435,7 +437,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
File targetClass=null;
|
|
|
|
File targetClass=null;
|
|
|
|
try {
|
|
|
|
|
|
|
|
// locate the file
|
|
|
|
// locate the file
|
|
|
|
if (!(path.startsWith("/"))) path = "/" + path; // attach leading slash
|
|
|
|
if (!(path.startsWith("/"))) path = "/" + path; // attach leading slash
|
|
|
|
File targetFile = getLocalizedFile(path);
|
|
|
|
File targetFile = getLocalizedFile(path);
|
|
|
|