Skip to content

Commit

Permalink
NAC-130: adding request header for pictures and thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishant0928 committed Dec 3, 2024
1 parent aa1a7a3 commit 435ab61
Showing 1 changed file with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ export const featureMap = () => ({
},
[FEATURES.THUMBNAIL_GENERATION]: (tabType: string) => {
let labels: labelsList;
let data = {
bodyParam: {
query: ""
}
};
let data = {};
switch (tabType) {
case GENERIC_LABELS.DOCUMENT:
labels = {
Expand All @@ -93,6 +89,9 @@ export const featureMap = () => ({
};
data = {
bodyParam: { query: `${THUMBNAIL_GENERATION_LABELS.DOCUMENT_QUERY}` },
requestHeaders: {
"Content-Type": "application/x-www-form-urlencoded",
},
};
break;

Expand All @@ -105,6 +104,9 @@ export const featureMap = () => ({
bodyParam: {
query: `${THUMBNAIL_GENERATION_LABELS.FOLDER_QUERY}`,
},
requestHeaders: {
"Content-Type": "application/x-www-form-urlencoded",
},
};
break;

Expand All @@ -119,6 +121,9 @@ export const featureMap = () => ({
};
data = {
bodyParam: { query: `${THUMBNAIL_GENERATION_LABELS.NXQL_QUERY}` },
requestHeaders: {
"Content-Type": "application/x-www-form-urlencoded",
},
};
break;

Expand All @@ -144,6 +149,9 @@ export const featureMap = () => ({
bodyParam: {
query: `${PICTURE_RENDITIONS_LABELS.DOCUMENT_QUERY}`,
},
requestHeaders: {
"Content-Type": "application/x-www-form-urlencoded",
},
};
break;

Expand All @@ -156,6 +164,9 @@ export const featureMap = () => ({
bodyParam: {
query: `${PICTURE_RENDITIONS_LABELS.FOLDER_QUERY}`,
},
requestHeaders: {
"Content-Type": "application/x-www-form-urlencoded",
},
};
break;

Expand All @@ -170,6 +181,9 @@ export const featureMap = () => ({
bodyParam: {
query: `${PICTURE_RENDITIONS_LABELS.NXQL_QUERY}`,
},
requestHeaders: {
"Content-Type": "application/x-www-form-urlencoded",
},
};
break;

Expand Down

0 comments on commit 435ab61

Please sign in to comment.