Merge branch 'master' of git://github.com/FrozenCow/dynmap

This commit is contained in:
Jason Booth 2011-02-09 14:24:13 -06:00
commit 959040e5f4
2 changed files with 4 additions and 3 deletions

View File

@ -29,7 +29,6 @@ public class ZoomedTileRenderer {
try {
image = ImageIO.read(new File(new File(outputPath), originalTile.getName() + ".png"));
} catch (IOException e) {
return;
}
if (image == null) {
@ -42,7 +41,6 @@ public class ZoomedTileRenderer {
try {
zIm = ImageIO.read(zoomFile);
} catch (IOException e) {
return;
}
if (zIm == null) {

View File

@ -29,7 +29,10 @@ public class HttpServerConnection extends Thread {
private static boolean readRequestHeader(InputStream in, HttpRequest request) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(in));
Matcher m = requestHeaderLine.matcher(r.readLine());
String statusLine = r.readLine();
if (statusLine == null)
return false;
Matcher m = requestHeaderLine.matcher(statusLine);
if (!m.matches())
return false;
request.method = m.group(1);