Skip to content

Commit 1a2f5ca

Browse files
committed
Fix TID check in _getContentFromStorage
Change-Id: I35833cbc79d359910724e46a9d9e1b5d10366e2f
1 parent 4eea180 commit 1a2f5ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sys/parsoid.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ class ParsoidService {
241241
} else {
242242
return hyper.get({ uri: this._getLatestBucketURI(domain, title) })
243243
.then((res) => {
244-
if (tid && tid !== res.headers.etag) {
244+
const resEtag = mwUtil.parseETag(res.headers.etag);
245+
if (tid && tid !== resEtag.tid) {
245246
throw new HTTPError({ status: 404 });
246247
}
247248

248-
const resEtag = mwUtil.parseETag(res.headers.etag);
249249
if (revision !== resEtag.rev) {
250250
throw new HTTPError({ status: 404 });
251251
}

0 commit comments

Comments
 (0)