if (data.startsWith("Content-Type: ")) {
if (data.startsWith("Content-type: ")) {
    void header(String data) {      try {        if (data.startsWith("Content-Type: ")) {          response.setContentType(data.substring(data.indexOf(" ")+1));        } else if (data.startsWith("Location: ")) {          response.sendRedirect(data.substring(data.indexOf(" ")+1));        } else {          int colon = data.indexOf(": ");          if (colon > 0) {            response.addHeader(data.substring(0,colon),              data.substring(colon+2));          } else {            response.getWriter().println(data);          }        }      } catch (IOException e) {        System.err.print(data);      }    }