Merge branch 'master' of git://github.com/FrozenCow/dynmap
This commit is contained in:
commit
728a321fb6
2 changed files with 4 additions and 3 deletions
|
|
@ -29,7 +29,6 @@ public class ZoomedTileRenderer {
|
||||||
try {
|
try {
|
||||||
image = ImageIO.read(new File(new File(outputPath), originalTile.getName() + ".png"));
|
image = ImageIO.read(new File(new File(outputPath), originalTile.getName() + ".png"));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (image == null) {
|
if (image == null) {
|
||||||
|
|
@ -42,7 +41,6 @@ public class ZoomedTileRenderer {
|
||||||
try {
|
try {
|
||||||
zIm = ImageIO.read(zoomFile);
|
zIm = ImageIO.read(zoomFile);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zIm == null) {
|
if (zIm == null) {
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,10 @@ public class HttpServerConnection extends Thread {
|
||||||
|
|
||||||
private static boolean readRequestHeader(InputStream in, HttpRequest request) throws IOException {
|
private static boolean readRequestHeader(InputStream in, HttpRequest request) throws IOException {
|
||||||
BufferedReader r = new BufferedReader(new InputStreamReader(in));
|
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())
|
if (!m.matches())
|
||||||
return false;
|
return false;
|
||||||
request.method = m.group(1);
|
request.method = m.group(1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue