Skip to content

Commit

Permalink
🐛 fixed disable session not active
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Jul 5, 2018
1 parent 6a5deb0 commit 4f31358
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.bladejava</groupId>
<artifactId>blade-mvc</artifactId>
<version>2.0.9.ALPHA3</version>
<version>2.0.9-SNAPSHOT</version>
<packaging>jar</packaging>

<name>blade</name>
Expand Down Expand Up @@ -38,7 +38,7 @@
<slf4j-api.version>1.7.25</slf4j-api.version>
<netty.version>4.1.25.Final</netty.version>
<blade-asm.version>0.0.3</blade-asm.version>
<blade-log.version>0.1.5</blade-log.version>
<blade-log.version>0.1.6</blade-log.version>
<gson.version>2.8.5</gson.version>
<bootstrap.version>4.1.0</bootstrap.version>
<mockito.version>1.10.19</mockito.version>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/blade/mvc/Const.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public interface Const {
int DEFAULT_SERVER_PORT = 9000;
String DEFAULT_SERVER_ADDRESS = "0.0.0.0";
String LOCAL_IP_ADDRESS = "127.0.0.1";
String VERSION = "2.0.9.ALPHA3";
String VERSION = "2.0.9-SNAPSHOT";
String WEB_JARS = "/webjars/";
String CLASSPATH = BladeKit.getCurrentClassPath();
String CONTENT_TYPE_HTML = "text/html; charset=UTF-8";
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/blade/mvc/http/HttpRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ public static HttpRequest build(FullHttpRequest fullHttpRequest, String remoteAd
httpRequest.uri = cleanUri;
}

httpRequest.session = SESSION_HANDLER.createSession(httpRequest);
if (null != SESSION_HANDLER) {
httpRequest.session = SESSION_HANDLER.createSession(httpRequest);
}
return httpRequest;
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ app.startDate=2017-08-02
list=hello,my,blade,word
map=user:blade,version:2.0.0

#com.blade.logger.rootLevel=error
com.blade.logger.rootLevel=error
com.blade.logger.dir=./logs

0 comments on commit 4f31358

Please sign in to comment.