Fix upload metadata missing when behind nginx
This commit is contained in:
1 parent
088e25cbb0
commit
359eca7bbc
2 files changed
+17
-11
No files matched your search
+4
-4
@@ -509,11 +509,11 @@ router.put("/files/:id", async (ctx) => {
|
||||
}
|
||||
|
||||
const metadata = {
|
||||
fileType: singleParam(ctx.request.headers["metadata.filetype"]) || "",
|
||||
oui: singleParam(ctx.request.headers["metadata.oui"]) || "",
|
||||
fileType: singleParam(ctx.request.headers["metadata-filetype"]) || "",
|
||||
oui: singleParam(ctx.request.headers["metadata-oui"]) || "",
|
||||
productClass:
|
||||
singleParam(ctx.request.headers["metadata.productclass"]) || "",
|
||||
version: singleParam(ctx.request.headers["metadata.version"]) || "",
|
||||
singleParam(ctx.request.headers["metadata-productclass"]) || "",
|
||||
version: singleParam(ctx.request.headers["metadata-version"]) || "",
|
||||
};
|
||||
|
||||
const validate = authorizer.getValidator(resource, metadata);
|
||||
|
||||
Reference in new issue
Block a user