Skip to content

Commit 86813f5

Browse files
committed
去掉304的处理
304不应该和200做相同处理,否则就失去热词更新的意义了。
1 parent 44fdf68 commit 86813f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/wltea/analyzer/dic/Monitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void run() {
6262
response = httpclient.execute(head);
6363

6464
//返回200 才做操作
65-
if(response.getStatusLine().getStatusCode()==200 || response.getStatusLine().getStatusCode()==304){
65+
if(response.getStatusLine().getStatusCode()==200){
6666

6767
if (!response.getLastHeader("Last-Modified").getValue().equalsIgnoreCase(last_modified)
6868
||!response.getLastHeader("ETag").getValue().equalsIgnoreCase(eTags)) {

0 commit comments

Comments
 (0)