mirror of https://gitee.com/bigwinds/arangodb
Use proper URL encoding in Cluster Documents API (single case)
This commit is contained in:
parent
2f5910f828
commit
eee02b40cb
|
@ -1363,9 +1363,11 @@ int getDocumentOnCoordinator(
|
||||||
}
|
}
|
||||||
|
|
||||||
// We send to single endpoint
|
// We send to single endpoint
|
||||||
cc->asyncRequest("", coordTransactionID, "shard:" + it.first, reqType,
|
cc->asyncRequest(
|
||||||
|
"", coordTransactionID, "shard:" + it.first, reqType,
|
||||||
baseUrl + StringUtils::urlEncode(it.first) + "/" +
|
baseUrl + StringUtils::urlEncode(it.first) + "/" +
|
||||||
slice.get(TRI_VOC_ATTRIBUTE_KEY).copyString() +
|
StringUtils::urlEncode(
|
||||||
|
slice.get(TRI_VOC_ATTRIBUTE_KEY).copyString()) +
|
||||||
optsUrlPart,
|
optsUrlPart,
|
||||||
body, headersCopy, nullptr, 60.0);
|
body, headersCopy, nullptr, 60.0);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1426,7 +1428,8 @@ int getDocumentOnCoordinator(
|
||||||
std::make_unique<std::map<std::string, std::string>>(*headers);
|
std::make_unique<std::map<std::string, std::string>>(*headers);
|
||||||
cc->asyncRequest("", coordTransactionID, "shard:" + shard, reqType,
|
cc->asyncRequest("", coordTransactionID, "shard:" + shard, reqType,
|
||||||
baseUrl + StringUtils::urlEncode(shard) + "/" +
|
baseUrl + StringUtils::urlEncode(shard) + "/" +
|
||||||
slice.get(TRI_VOC_ATTRIBUTE_KEY).copyString() +
|
StringUtils::urlEncode(
|
||||||
|
slice.get(TRI_VOC_ATTRIBUTE_KEY).copyString()) +
|
||||||
optsUrlPart,
|
optsUrlPart,
|
||||||
nullptr, headersCopy, nullptr, 60.0);
|
nullptr, headersCopy, nullptr, 60.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue