package com.ctrip.framework.apollo.portal.spi.defaultimpl;

import com.ctrip.framework.apollo.portal.spi.SsoHeartbeatHandler;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Jason Song(song_s@ctrip.com)
 */
public class DefaultSsoHeartbeatHandler implements SsoHeartbeatHandler {
  @Override
  public void doHeartbeat(HttpServletRequest request, HttpServletResponse response) {
    try {
      response.getWriter().write("default sso heartbeat handler");
    } catch (IOException e) {
    }
  }
}

@@ -472,16 +472,75 @@
   try %7B%0A
+      response.setContentType(%22text/plain;charset=utf-8%22);%0A
       re

add content type for compatibility issue