Skip to content

Commit

Permalink
fix: because its MIME type ('') is not executable
Browse files Browse the repository at this point in the history
  • Loading branch information
renfei committed Dec 23, 2020
1 parent 1f6f6f0 commit a323810
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<dependency>
<groupId>net.renfei</groupId>
<artifactId>discuz-ucenter-api-for-java</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>
```

如果你使用的是传统方式,需要下载```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)

## 使用

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>net.renfei</groupId>
<artifactId>discuz-ucenter-api-for-java</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>
<name>discuz-ucenter-api-for-java</name>
<url>https://github.com/renfei/discuz-ucenter-api-for-java</url>
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/renfei/discuz/ucenter/api/UCClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {

Expand All @@ -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)) {

Expand Down

0 comments on commit a323810

Please sign in to comment.