X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpage%2FStaticPage.java;h=3d24fddfc3c674292a6fec9e1411a3cf78e743e5;hb=1c777f49db5a70349c52e851e9dd0204bd2dd64e;hp=223d66b1b0fafe1f703e2215dc30aae1d3aa52c6;hpb=249df198dc095775e61b363d352fc54442279a7a;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/page/StaticPage.java b/src/main/java/net/pterodactylus/sone/web/page/StaticPage.java index 223d66b..3d24fdd 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/StaticPage.java +++ b/src/main/java/net/pterodactylus/sone/web/page/StaticPage.java @@ -1,5 +1,5 @@ /* - * shortener - CSSPage.java - Copyright © 2010 David Roden + * Sone - StaticPage.java - Copyright © 2010 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -69,7 +69,7 @@ public class StaticPage implements Page { String filename = path.substring(lastSlash + 1); InputStream fileInputStream = getClass().getResourceAsStream(resourcePathPrefix + filename); if (fileInputStream == null) { - return new Response(404, "Not found.", null, (String) null); + return new Response(404, "Not found.", null, ""); } return new Response(200, "OK", mimeType, null, fileInputStream); }