Commit Graph

2611 Commits

Author SHA1 Message Date
Andreas Rumpf
ee8c1c6f93 Merge pull request #4989 from endragor/empty-async-all
async all() now immediately completes if arg is empty
2016-11-03 10:54:19 +01:00
Ruslan Mustakov
f2bded180f async all() now immediately completes if arg is empty 2016-11-03 10:50:43 +07:00
Dominik Picheta
e784fdee45 Merge pull request #4970 from nigredo-tori/fix-4969
Fix problems with persistent HTTP connections
2016-11-02 18:57:00 +01:00
lihf8515
89d4574445 Update parsecfg.nim
Value includes double quotation marks.
2016-11-02 11:48:11 +08:00
Dmitry Polienko
4753149227 Implement suggestions from @dom96 2016-11-02 09:19:20 +07:00
Araq
47304372ca change TimeImpl for MingW 2016-11-01 14:11:46 +01:00
Felix Krause
af4c75a893 Fixes #4974 2016-10-31 20:46:50 +01:00
Dmitry Polienko
52f4590e98 Don't persist generated headers between requests 2016-10-31 09:46:50 +07:00
Dmitry Polienko
860264a382 Skip empty lines before status line
As recommended here: https://tools.ietf.org/html/rfc7230#section-3.5
2016-10-31 09:42:45 +07:00
andri lim
a42e9b11a7 fixes #4940 2016-10-27 11:32:14 +07:00
Dominik Picheta
b2b2dcff08 Fixes #4959. 2016-10-26 21:26:48 +02:00
Yuriy Glukhov
6690cd15f4 Mark socketError as gcsafe 2016-10-26 20:17:40 +03:00
Felix Krause
7476e4fcb2 Fixes #4946 2016-10-24 22:36:21 +02:00
Andreas Rumpf
2f725e923e Merge pull request #4924 from nigredo-tori/fix-4917
Make createDir return discardable bool
2016-10-24 20:30:52 +02:00
Araq
8a0b945170 asynchttpserver: cleanup example code 2016-10-24 20:28:27 +02:00
Andreas Rumpf
3effd52ca3 Merge pull request #4847 from honewatson/patch-1
Add respond proc example
2016-10-24 20:27:16 +02:00
Andreas Rumpf
00f09f1309 Merge pull request #4819 from andreaferretti/usefulmacros
Some useful macros
2016-10-24 18:41:45 +02:00
Andreas Rumpf
86ca077324 Merge pull request #4943 from nigredo-tori/fix-4942
Reset HttpClient if new URL has different port
2016-10-24 17:07:30 +02:00
Andreas Rumpf
236c2beead Merge pull request #4935 from flyx/tablefix
Table fixes. fixes #4901
2016-10-24 17:07:03 +02:00
Andreas Rumpf
353ce7315a Merge pull request #4938 from FedericoCeratto/unittest
Improve unittest docs
2016-10-24 17:03:11 +02:00
Andreas Rumpf
8208a2db84 Merge pull request #4937 from cheatfate/newos
Some changes to os.nim
2016-10-24 17:02:15 +02:00
Dmitry Polienko
8fb7858291 Reset HttpClient if new URL has different port 2016-10-24 09:42:18 +07:00
Andreas Rumpf
c486e6377c fixes #4386 2016-10-23 17:43:38 +02:00
Federico Ceratto
767e0846c1 Improve unittest docs 2016-10-23 16:13:38 +01:00
cheatfate
c21bc6c61c Fix for getCurrentDir().
Fix for expandFilename().
Fix for getAppFilename().
2016-10-23 16:41:04 +03:00
Felix Krause
73b0bb52bb Table fixes. fixes #4901
* added `==` for OrderedTable, CountTable and the *Ref types
 * added missing documentation to all `==` procs
 * fixed clear() for OrderedTables, which did not work because `var`
   does not work well with `|`
 * added tests
2016-10-23 11:21:52 +02:00
Andreas Rumpf
9f895c6f5a Merge pull request #4931 from nigredo-tori/fix-4929
Fix isAbsolute for Windows root directories
2016-10-22 16:20:06 +02:00
Andreas Rumpf
2de67c60b6 Merge pull request #4932 from cheatfate/fix4928
Fix #4928
2016-10-22 16:19:18 +02:00
cheatfate
406878ec5f Fix #4928 2016-10-22 15:07:45 +03:00
Dmitry Polienko
bc305261d9 Fix isAbsolute for Windows root directories 2016-10-22 18:47:45 +07:00
Dmitry Polienko
1cd4799b01 Improve as previously discussed
Better name for exposed primitive function, checks for pre-existing files
2016-10-22 18:39:10 +07:00
Dmitry Polienko
785e402247 Make createDir more robust
Should now properly work for root directories on Windows (after isAbsolute
is fixed)
2016-10-22 18:07:00 +07:00
Dmitry Polienko
45b432b901 Revert createDir signature, expose rawCreateDir 2016-10-22 17:37:28 +07:00
Dmitry Polienko
1f641b1337 Fix for unix and solaris 2016-10-22 13:08:11 +07:00
Dmitry Polienko
48ef6761d8 Make createDir return discardable bool 2016-10-22 12:29:03 +07:00
Jonathan Bernard
b7232bd425 Fix #4922, bug in times.parse, mishandling DST. 2016-10-21 17:06:36 -05:00
Andreas Rumpf
de7027e0bf Merge pull request #4919 from def-/httpclient-doc
Update httpclient documentation
2016-10-21 11:34:42 +02:00
Dennis Felsing
f0ed986e0e Update httpclient documentation 2016-10-21 10:53:28 +02:00
cheatfate
0c69891b8d One more attempt to fix #4867 2016-10-21 11:15:33 +03:00
Andreas Rumpf
50d593787f fixes #1518 2016-10-20 23:44:55 +02:00
Andreas Rumpf
17128f163a Merge pull request #4904 from FedericoCeratto/spellings
Fix few typos
2016-10-20 15:35:31 +02:00
Andreas Rumpf
a12f503b47 fixes #4899 2016-10-19 19:56:51 +02:00
Federico Ceratto
7d24656b0a Fix few typos 2016-10-17 13:12:15 +01:00
cheatfate
0ff7fbea34 Fix handle of error only events. 2016-10-16 04:03:45 +03:00
Jonathan Bernard
68d3486f5a Bugfix for times.initInterval (issue #4889)
`initInterval` had logic to calculate and carry overflowed fields (65 seconds
turns into 5 seconds and carries 1 minute). However, we were not including that
carried value when we recalculate the carry over for the next period of time.So
if you had, for example, 3600 seconds, we carried 60 minutes into the minutes
calculation, but when we calculated how much we should carry into the hours
value we only considered what the user originally supplied for the minutes
field, and forgot to include those 60 carried minute.

So, for example, with the previous implementation this was true:

`seconds(60 * 60 * 24) == seconds(0)`

Or, as failing tests:

```nimrod
import times

assert seconds(60 * 60 * 24) != seconds(0)
assert seconds(60 * 60 * 24) == days(1)
```
2016-10-12 15:44:21 -05:00
Alpha Shuro
72b15678a1 Add example for posting json content
i struggled to figure out how to post json content with nim's http client. this is a fundamental capability in many web apps, we don't always need to send data as multipart form data (e.g. when communicating via json apis) so frankly i'm surprised it isn't part of the "post" and "postContent" procs
2016-10-12 13:58:34 +02:00
Andreas Rumpf
f46168d654 Merge pull request #4828 from jfhg/unify_waitpid_handling
Unify waitpid handling
2016-10-09 19:03:12 +02:00
Araq
80ad3d3441 fixes #4844 2016-10-08 10:47:47 +02:00
honewatson
065210e6a3 Add respond proc example
Add an example for the respond proc demonstration JSON response.
2016-10-03 20:22:32 +11:00
Dominik Picheta
c24d6fe17e Fixes pesky hint in asyncfutures. 2016-10-01 00:09:17 +02:00