/*
- * 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
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);
}