mirror of
https://github.com/miniflux/v2.git
synced 2025-07-27 17:28:38 +00:00
Add unit test for HTTP client response functions
This commit is contained in:
parent
aecda64030
commit
c5cd38de83
2 changed files with 61 additions and 1 deletions
|
@ -28,7 +28,11 @@ func (r *Response) IsModified(etag, lastModified string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if r.ETag != "" && r.LastModified != "" && (r.ETag == etag || r.LastModified == lastModified) {
|
||||
if r.ETag != "" && r.ETag == etag {
|
||||
return false
|
||||
}
|
||||
|
||||
if r.LastModified != "" && r.LastModified == lastModified {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue