Skip to content

Commit

Permalink
Merge 2afff0c into 59e1721
Browse files Browse the repository at this point in the history
  • Loading branch information
Pchelolo committed Jun 19, 2018
2 parents 59e1721 + 2afff0c commit 4afeadb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sys/multi_content_bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ function returnRevision(req) {
const row = dbResult.body.items[0];
const headers = {
etag: mwUtil.makeETag(row.rev, row.tid),
'content-type': row['content-type']
'content-type': row['content-type'],
vary: row.vary
};
return {
status: 200,
Expand Down Expand Up @@ -87,6 +88,7 @@ class MultiContentBucket {
rev,
tid,
'content-type': req.body[cTypeSpec.name].headers['content-type'],
vary: req.body[cTypeSpec.name].headers.vary,
value: req.body[cTypeSpec.name].body
}
}
Expand All @@ -101,6 +103,7 @@ class MultiContentBucket {
rev,
tid,
'content-type': req.body[mainCTypeName].headers['content-type'],
vary: req.body[mainCTypeName].headers.vary,
value: req.body[mainCTypeName].body
}
}
Expand Down Expand Up @@ -218,7 +221,7 @@ class MultiContentBucket {
}

makeSchema(opts) {
const schemaVersionMajor = 3;
const schemaVersionMajor = 4;

return {
table: opts.table,
Expand All @@ -245,6 +248,7 @@ class MultiContentBucket {
// Redirect
'content-location': 'string',
'content-type': 'string',
vary: 'string',
tags: 'set<string>'
},
index: [
Expand Down

0 comments on commit 4afeadb

Please sign in to comment.