Skip to content

Commit bca9cb6

Browse files
committed
Change request to upgrade server to GET
1 parent f0f18bf commit bca9cb6

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

dash/dash-renderer/src/components/error/menu/VersionInfo.react.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,13 @@ async function requestDashVersionInfo(config) {
4747
link: cachedNewDashVersionLink
4848
};
4949
} else {
50-
return fetch(dashVersionUrl, {
51-
method: 'POST',
52-
body: JSON.stringify({
53-
dash_version: currentDashVersion,
54-
python_version: pythonVersion,
55-
ddk_version: ddkVersion,
56-
plotly_version: plotlyVersion
57-
}),
58-
headers: {
59-
'Content-Type': 'application/json'
60-
}
61-
})
50+
const queryParams = new URLSearchParams({
51+
dash_version: currentDashVersion,
52+
python_version: pythonVersion,
53+
ddk_version: ddkVersion,
54+
plotly_version: plotlyVersion
55+
}).toString();
56+
return fetch(dashVersionUrl + '?' + queryParams)
6257
.then(response => response.json())
6358
.catch(() => {
6459
return {};

0 commit comments

Comments
 (0)