Skip to content

Commit

Permalink
Testing response.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mat Jordan committed May 18, 2020
1 parent 0d05dca commit 9057860
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/moldybreadpkg/fedora.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit 9057860

Please sign in to comment.