trellis-ldp / trellis-extensions

Trellis Linked Data server extensions
https://www.trellisldp.org
Apache License 2.0
2 stars 3 forks source link

Accept-Datetime should return the closest Memento #14

Closed gregjan closed 5 years ago

gregjan commented 5 years ago

According to RFC 7089, section 4.5.3, the Accept-Datetime header can request a date from a TimeGate prior to the first memento or after the last memento. In these cases, the specification says that the closest Memento should be selected. (Relates to #188 )

acoburn commented 5 years ago

Because the DBMementoService simply wraps the FileMemento service from the upstream repository, this issue was resolved with trellis-ldp/trellis#468