diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-05 20:27:42 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-05 20:27:42 +0100 |
commit | d0478a5637dd4f75cfd615e3ed8aa4d0a082a8c9 (patch) | |
tree | 7417e050799d97fe7727dc50e823cd2c3264a271 /lib/pure/httpclient.nim | |
parent | 694fc87b1d3259c49ba61f46ef27d87552faf431 (diff) | |
download | Nim-d0478a5637dd4f75cfd615e3ed8aa4d0a082a8c9.tar.gz |
Asyncdispatch fixes.
``return`` is now transformed into a ``return nil`` in the async iterator to work around the no-yield in ``try .. except ..`` closure iterator limitation.
Diffstat (limited to 'lib/pure/httpclient.nim')
-rw-r--r-- | lib/pure/httpclient.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim index fea045221..415775583 100644 --- a/lib/pure/httpclient.nim +++ b/lib/pure/httpclient.nim @@ -430,7 +430,7 @@ proc generateHeaders(r: TURL, httpMethod: THttpMethod, add(result, "\c\L") type - PAsyncHttpClient = ref object + PAsyncHttpClient* = ref object socket: PAsyncSocket connected: bool currentURL: TURL ## Where we are currently connected. |