- Timestamp:
- 02/04/14 15:31:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BookmarkController.pm
r66 r67 306 306 } 307 307 308 #TODO: better method name309 308 # returns 1 if there is an If-Modified-Since header and it is newer than the given $mtime 310 309 # returns 0 if there is an If-Modified-Since header but the $mtime is newer 311 310 # returns undef if there is no If-Modified-Since header 312 sub _ check_modified{311 sub _request_is_newer_than { 313 312 my $self = shift; 314 313 my $mtime = shift; … … 330 329 my $bookmark = $self->get_bookmark({ id => $id }); 331 330 if ($bookmark) { 332 return [304, [], []] if $self->_ check_modified($bookmark->mtime);331 return [304, [], []] if $self->_request_is_newer_than($bookmark->mtime); 333 332 334 333 my $last_modified = time2str($bookmark->mtime); … … 357 356 my $bookmark = $self->get_bookmark({ id => $id }); 358 357 if ($bookmark) { 359 return [304, [], []] if $self->_ check_modified($bookmark->mtime);358 return [304, [], []] if $self->_request_is_newer_than($bookmark->mtime); 360 359 361 360 # check whether the requested field is part of the bookmark
Note: See TracChangeset
for help on using the changeset viewer.