diff --git a/README.md b/README.md index a5c5bdf..b3e46f3 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ net.renfei discuz-ucenter-api-for-java - 1.0.1 + 1.0.2 ``` -如果你使用的是传统方式,需要下载```Jar```包,放入```lib```文件夹,下载地址:[discuz-ucenter-api-for-java-1.0.1.jar -](https://github.com/renfei/discuz-ucenter-api-for-java/releases/download/1.0.1/discuz-ucenter-api-for-java-1.0.1.jar) +如果你使用的是传统方式,需要下载```Jar```包,放入```lib```文件夹,下载地址:[discuz-ucenter-api-for-java-1.0.2.jar +](https://github.com/renfei/discuz-ucenter-api-for-java/releases/download/1.0.2/discuz-ucenter-api-for-java-1.0.2.jar) ## 使用 diff --git a/pom.xml b/pom.xml index b655816..5407bed 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.renfei discuz-ucenter-api-for-java - 1.0.1 + 1.0.2 jar discuz-ucenter-api-for-java https://github.com/renfei/discuz-ucenter-api-for-java diff --git a/src/main/java/net/renfei/discuz/ucenter/api/UCClient.java b/src/main/java/net/renfei/discuz/ucenter/api/UCClient.java index 5bfc1b5..4860bbe 100644 --- a/src/main/java/net/renfei/discuz/ucenter/api/UCClient.java +++ b/src/main/java/net/renfei/discuz/ucenter/api/UCClient.java @@ -121,6 +121,7 @@ public String doAnswer(Client client, HttpServletRequest request, HttpServletRes Cookie user = new Cookie("loginuser", getMap.get("username")); user.setMaxAge(cookietime); response.addCookie(user); + response.setHeader("content-type","application/javascript"); } else if ("synlogout".equals(action)) { @@ -136,6 +137,7 @@ public String doAnswer(Client client, HttpServletRequest request, HttpServletRes Cookie user = new Cookie("loginuser", ""); user.setMaxAge(0); response.addCookie(user); + response.setHeader("content-type","application/javascript"); } else if ("updateclient".equals(action)) {