Пример #1
0
  /**
   * Set the specified header to the specified value.
   *
   * @param name Name of the header to set
   * @param value Value to be set
   */
  @Override
  public void setHeader(String name, String value) {

    if (name == null || name.length() == 0 || value == null) {
      return;
    }

    if (isCommitted()) {
      return;
    }

    // Ignore any call from an included servlet
    if (included) {
      return;
    }

    char cc = name.charAt(0);
    if (cc == 'C' || cc == 'c') {
      if (checkSpecialHeader(name, value)) return;
    }

    coyoteResponse.setHeader(name, value);
  }