commit
b3165ceb36
@ -62,7 +62,7 @@ public class Monitor implements Runnable {
|
|||||||
response = httpclient.execute(head);
|
response = httpclient.execute(head);
|
||||||
|
|
||||||
//返回200 才做操作
|
//返回200 才做操作
|
||||||
if(response.getStatusLine().getStatusCode()==200 || response.getStatusLine().getStatusCode()==304){
|
if(response.getStatusLine().getStatusCode()==200){
|
||||||
|
|
||||||
if (!response.getLastHeader("Last-Modified").getValue().equalsIgnoreCase(last_modified)
|
if (!response.getLastHeader("Last-Modified").getValue().equalsIgnoreCase(last_modified)
|
||||||
||!response.getLastHeader("ETag").getValue().equalsIgnoreCase(eTags)) {
|
||!response.getLastHeader("ETag").getValue().equalsIgnoreCase(eTags)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user