mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-16 17:51:48 +01:00
Set body on SPARQL request
This commit is contained in:
parent
b28f7625e4
commit
4ab4f09987
@ -88,6 +88,13 @@ const prepareRequest = (request, collectionRoot) => {
|
|||||||
axiosRequest.data = request.body.xml;
|
axiosRequest.data = request.body.xml;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (request.body.mode === 'sparql') {
|
||||||
|
if (!contentTypeDefined) {
|
||||||
|
axiosRequest.headers['content-type'] = 'application/sparql-query';
|
||||||
|
}
|
||||||
|
axiosRequest.data = request.body.sparql;
|
||||||
|
}
|
||||||
|
|
||||||
if (request.body.mode === 'formUrlEncoded') {
|
if (request.body.mode === 'formUrlEncoded') {
|
||||||
axiosRequest.headers['content-type'] = 'application/x-www-form-urlencoded';
|
axiosRequest.headers['content-type'] = 'application/x-www-form-urlencoded';
|
||||||
const params = {};
|
const params = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user