Set domain

main
Bob Mottram 2021-09-01 19:02:34 +01:00
parent 89f59fa71c
commit 1398685e74
2 changed files with 3 additions and 3 deletions

View File

@ -890,7 +890,7 @@ if args.json:
else: else:
print('Did not obtain instance actor key for ' + args.domain) print('Did not obtain instance actor key for ' + args.domain)
testJson = getJson(signingPrivateKeyPem, session, args.json, asHeader, testJson = getJson(signingPrivateKeyPem, session, args.json, asHeader,
None, debug, __version__, httpPrefix, None) None, debug, __version__, httpPrefix, args.domain)
pprint(testJson) pprint(testJson)
sys.exit() sys.exit()
@ -1907,7 +1907,7 @@ if args.actor:
print('Obtained instance actor signing key') print('Obtained instance actor signing key')
else: else:
print('Did not obtain instance actor key for ' + domain) print('Did not obtain instance actor key for ' + domain)
getActorJson(args.domain, args.actor, args.http, args.gnunet, getActorJson(domain, args.actor, args.http, args.gnunet,
debug, False, signingPrivateKeyPem) debug, False, signingPrivateKeyPem)
sys.exit() sys.exit()

View File

@ -99,7 +99,7 @@ def _getJsonRequest(session, url: str, domainFull: str, sessionHeaders: {},
print("WARN: getJson requires secure fetch url: " + url) print("WARN: getJson requires secure fetch url: " + url)
else: else:
if debug: if debug:
print('Using signed GET') print('Using signed GET for domain: ' + domainFull)
return _getJsonSigned(session, url, domainFull, return _getJsonSigned(session, url, domainFull,
sessionHeaders, sessionParams, sessionHeaders, sessionParams,
timeoutSec, signingPrivateKeyPem, timeoutSec, signingPrivateKeyPem,