MCPcopy Create free account
hub / github.com/PizazzGY/NewTVBox / objectToQueryString

Function objectToQueryString

js/drpy2.min.js:1408–1416  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1406}
1407
1408function objectToQueryString(obj) {
1409 const encoded = [];
1410 for (let key in obj) {
1411 if (obj.hasOwnProperty(key)) {
1412 encoded.push(encodeURIComponent(key) + "=" + encodeIfContainsSpecialChars(obj[key]))
1413 }
1414 }
1415 return encoded.join("&")
1416}
1417
1418function request(url, obj, ocr_flag) {
1419 ocr_flag = ocr_flag || false;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected