mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
b353cdd90b
commit
d17e1eaa2d
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,9 @@ function resolveUri(base, path) {
|
|||
} else {
|
||||
// pathToUse has query string, append '&pretty'
|
||||
pathToUse = `${pathToUse}&pretty`;
|
||||
}
|
||||
} // appending pretty here to have Elasticsearch do the JSON formatting, as doing
|
||||
// in JS can lead to data loss (7.0 will get munged into 7, thus losing indication of
|
||||
// measurement precision)
|
||||
return pathToUse;
|
||||
}
|
||||
|
||||
|
@ -132,6 +134,8 @@ export const createProxyRoute = ({
|
|||
.type('text/plain')
|
||||
.header('warning', esResponse.headers.warning);
|
||||
};
|
||||
// Wreck assumes that DELETE requests will not have a body, and thus it does not
|
||||
// parse the payload to pass it along, so we have to do this manually here.
|
||||
if (method.toUpperCase() === 'DELETE') {
|
||||
const data = await Wreck.read(payload);
|
||||
return await makeRequest(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue