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 Aug 22, 2023
1 parent 4eea180 commit 1a2f5ca
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 @@ -241,11 +241,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 1a2f5ca

Please sign in to comment.