From 90578607bea717160e400a911fd13ade085ffa7e Mon Sep 17 00:00:00 2001 From: Mat Jordan Date: Mon, 18 May 2020 14:03:44 -0400 Subject: [PATCH] Testing response. --- src/moldybreadpkg/fedora.nim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/moldybreadpkg/fedora.nim b/src/moldybreadpkg/fedora.nim index 061b131..49e9908 100644 --- a/src/moldybreadpkg/fedora.nim +++ b/src/moldybreadpkg/fedora.nim @@ -347,6 +347,7 @@ method populate_results*(this: FedoraRequest): seq[string] {. base .} = new_pids: seq[string] = @[] token: string = "temporary" request, base_request: string + preflight = Response response = "" echo "\nFinding matching objects. This may take a while.\n" @@ -363,9 +364,11 @@ method populate_results*(this: FedoraRequest): seq[string] {. base .} = while token.len > 0: try: # debug - let preflight = this.client.get(request) - stdout.write(preflight) + preflight = this.client.get(request) + stdout.write("\n") stdout.write(preflight.status) + stdout.write("\n") + stdout.write(preflight.body) # enddebug response = this.client.getContent(request) new_pids = this.grab_pids(response)