Delete BaseHTTPService and implement new BaseXmlService (affects [eclipse-marketplace f-droid]; also testing on [uptimerobot circleci]) (#2037)

This commit is contained in:
Pyves
2018-09-03 19:37:37 +01:00
committed by GitHub
parent 39d05ba817
commit 7417dc5f6c
26 changed files with 824 additions and 376 deletions

View File

@@ -50,18 +50,6 @@ checkErrorResponse.asPromise = function(errorMessages = {}) {
}
}
async function asJson({ buffer, res }) {
try {
return JSON.parse(buffer)
} catch (err) {
throw new InvalidResponse({
prettyMessage: 'unparseable json response',
underlyingError: err,
})
}
}
module.exports = {
checkErrorResponse,
asJson,
}