public void sendReply_send_file_from_jar(MyHTTPServer socket, String fileName, String mimeType, boolean headRequest/*, String cookie*/) throws Exception {
		String reply = "HTTP/1.0 200 OK\r\n";
		reply += "Date: " + getHTTPDate(Calendar.getInstance()) + "\r\n";
		reply += "Server: " + CoffeeSaint.getVersion() + "\r\n";
		// if (cookie != null)
		// 	reply += "Set-Cookie: " + cookie + "\r\n";
		reply += "Last-Modified: " + getModificationDateString(fileName) + "\r\n";
		reply += "Connection: close\r\n";
		reply += "Content-Type: " + mimeType + "\r\n";
		reply += "\r\n";
		socket.getOutputStream().write(reply.getBytes());

		if (!headRequest)
		{
			InputStream is = getClass().getClassLoader().getResourceAsStream(fileName);
			int length = is.available();
			CoffeeSaint.log.add("Sending " + fileName + " which is " + length + " bytes long and of type " + mimeType + ".");
			byte [] icon = new byte[length];
			while(length > 0)
			{
				int nRead = is.read(icon);
				if (nRead < 0)
					break;
				socket.getOutputStream().write(icon, 0, nRead);
				length -= nRead;
			}
		}

		socket.close();
	}