Skip to content

Commit

Permalink
Fix TID check in _getContentFromStorage
Browse files Browse the repository at this point in the history
Change-Id: I35833cbc79d359910724e46a9d9e1b5d10366e2f
  • Loading branch information
brightbyte committed Oct 12, 2023
1 parent 07dcfee commit eb17fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/parsoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ class ParsoidService {
} else {
return hyper.get({ uri: this._getLatestBucketURI(domain, title) })
.then((res) => {
if (tid && tid !== res.headers.etag) {
const resEtag = mwUtil.parseETag(res.headers.etag);
if (tid && tid !== resEtag.tid) {
throw new HTTPError({ status: 404 });
}

const resEtag = mwUtil.parseETag(res.headers.etag);
if (revision !== resEtag.rev) {
throw new HTTPError({ status: 404 });
}
Expand Down

0 comments on commit eb17fb1

Please sign in to comment.