fixed some tests

This commit is contained in:
Araq
2011-11-19 12:23:03 +01:00
parent 62aa8bed3b
commit d0772feb08
15 changed files with 135 additions and 128 deletions

View File

@@ -140,11 +140,11 @@ proc executeCgi(client: TSocket, path, query: string, meth: TRequestMethod) =
dealloc(buf)
OSError()
var inp = process.inputStream
inp.writeData(inp, buf, contentLength)
inp.writeData(buf, contentLength)
dealloc(buf)
var outp = process.outputStream
while running(process) or not outp.atEnd(outp):
while running(process) or not atEnd(outp):
var line = outp.readLine()
send(client, line.string)
send(client, wwwNL)