Timothee Cour
e4415422fe
Revert "printing float values will have one more digit. ( #13276 ) [backport]" ( #13363 )
...
This reverts commit b2c6db97f9 .
2020-02-08 09:30:24 +01:00
Miran
f3117d350e
fix #6736 : templates in unittest now show actual value ( #13354 )
2020-02-07 22:04:08 +01:00
Miran
78b15de304
[backport] remove 'CountTable.mget' ( #13355 )
...
It didn't work, and it was an oversight to be included in v1.0.
2020-02-07 20:50:44 +01:00
narimiran
36d1ad39d0
[backport] fix #13352
2020-02-07 18:26:08 +01:00
Arne Döring
b2c6db97f9
printing float values will have one more digit. ( #13276 ) [backport]
...
* printing float values will have one more digit. Fixes #13196
2020-02-07 17:10:25 +01:00
Henrique Dias
abd660c407
Added a basic example how to handle a Post request. ( #13339 )
...
* Added a basic example how to handle a Post request.
They were also made minor cosmetic changes.
* Minor fixes suggested by Yardanico
* Fixed a wrong value in chunkSize constant.
* Re-added the request.body for compatibility!
2020-02-07 03:59:28 -05:00
Henrique Dias
955465e5f4
Option to allow the request body to be processed outside the asynchttpserver library. ( #13147 )
...
Allow the request body to be processed outside the asynchttpserver library to break big files into chunks of data. This change does not break anything.
2020-02-04 21:13:25 +01:00
Clyybber
d43e5bef39
Fix capture for object types ( #13315 )
...
* Fix capture for object|tuple|... types
* Add test case
2020-02-02 13:52:21 +01:00
Timothee Cour
adc52b0039
refs #8391 std/os now shows runtime context for raiseOSError exceptions ( #13294 )
...
* refs #8391 : fix errmsg for setCurrentDir
* raiseOSError calls for copyFile
* refs #8391 std/os now shows runtime context for raiseOSError exceptions
2020-01-30 11:06:04 +01:00
Timothee Cour
bf22b44b1f
miscellaneous bug fixes ( #13291 )
...
* fix for emscripten etc
* add testcase for #13290
* replace deprecated isNilOrWhitespace
2020-01-30 10:54:50 +01:00
Timothee Cour
2ecef8f779
csize => csize_t for sysctl
2020-01-28 23:36:24 +00:00
Clyybber
fb94836bc7
Tiny since cleanup ( #13286 )
2020-01-28 20:02:07 +01:00
cooldome
84e8477b90
unittest add resetOutputFormatters proc ( #13267 )
...
* add resetOutputFormatters
* remove space
* resolve comments
2020-01-28 14:16:03 +00:00
hlaaftana
e7744b0909
Rename isNilOrWhitespace to isEmptyOrWhitespace and make it use allCharsInSet ( #13258 )
...
* Rename isNilOrWhitespace to isEmptyOrWhitespace
* Make isEmptyOrWhitespace use allCharsInSet(Whitespace)
2020-01-26 14:02:07 +01:00
Euan
ccb728a7b0
Fix typo for literal [ ( #13243 )
...
The literal value for the `tkBracketLe` token was incorrectly set to `]` rather than `[`. I've had a quick glance at the code and it doesn't look like this change will affect anything at all, but I haven't tested yet - let's see if the CI explodes...
2020-01-24 08:42:03 +00:00
hlaaftana
4656580b54
Fixes asyncftpclient multiline reading, fixes #4684 ( #13242 )
...
Previously, the 4th character of `result` was checked for `'-'` every time, instead of each new line.
Also made it work for taint mode.
2020-01-24 00:18:16 +01:00
Kaushal Modi
c4ff4e553e
[backport] Make all parseutils examples auto-checking ( #13238 )
...
- Also fix one example's output (ikString -> ikStr, ikVar instead of ikExpr)
2020-01-23 17:14:22 +01:00
Timothee Cour
3a5056dc70
fix lots of bugs with parentDir, refs #8734 ( #13236 )
2020-01-23 13:39:41 +01:00
Mera
4a754ff392
[backport] Fix typo and improve in code-block of 'lib/pure/parseutils.nim' ( #13231 ) [ci skip]
2020-01-23 06:49:27 +01:00
Timothee Cour
7356bc29b7
new os.isRelativeTo ( #13212 )
2020-01-23 00:45:16 +01:00
Milan
3e843ab335
[backport] times/getClockStr(): fix mistake in doc ( #13229 ) [ci skip]
2020-01-22 18:22:14 +01:00
Juan Carlos
2fad7f134f
httpclient, maxredirects to Natural, newHttpClient/newAsyncHttpClient add headers argument instead of hardcoded empty ( #13207 )
2020-01-21 19:34:47 +01:00
Andreas Rumpf
bdb7c82c6a
fixes a critical times.nim bug reported on IRC [backport] ( #13216 )
2020-01-21 16:49:59 +01:00
Timothee Cour
b355ef2a72
fix #13211 relativePath("foo", ".") ( #13213 )
2020-01-21 15:48:19 +01:00
Miran
bf96d6d316
Idxmin & idxmax, continuation ( #13208 )
...
* Add idxmin() which returns the index of the minimum value
* Add idxmax() which returns the index of the maximum value
* Add tests for idxmin()
* Add tests for idxmax()
* Remove initialization of result = 0
* Adds overloading for arrays (no enums indexed arrays yet)
* Add support for enum index arrays
* Fix tests with enum
* Fix tests for idxmax
* Change names of the procedures to minIndex and maxIndex
* address Araq's comments:
- remove 'array' versions
- add .since pragma
- return 'int' instead of 'Natural'
- add changelog entry
Co-authored-by: Federico A. Corazza <20555025+Imperator26@users.noreply.github.com >
2020-01-20 16:57:34 +01:00
Federico Ceratto
8d64550b1e
Add link to packaging.html ( #13194 )
2020-01-19 14:15:59 +01:00
Timothee Cour
e11ecc8266
times: toUnixFloat, fromUnixFloat ( #13044 )
2020-01-18 01:24:44 +01:00
Andreas Rumpf
7626907401
ARC works for async on Windows ( #13179 )
2020-01-17 11:14:17 +01:00
Miran
352232e62d
style fix: change 'JS' to 'js' to make it consistent ( #13168 )
2020-01-16 14:14:03 +01:00
Timothee Cour
51c072bd37
export normalizePathEnd ( #13152 )
2020-01-15 15:03:06 +01:00
perter lee
1f27a2f8ab
fix the ftp store function read the local file bug ( #13108 ) [backport]
...
* Update asyncftpclient.nim
When use newStringOfCap function not have assign memory for the string data,so if use this address the fault is rasise.
* complelete the bugfix
2020-01-13 10:16:19 +01:00
Miran
c0973d1b47
[backport] fix #12813 , fix #13079 ( #13099 )
...
Correctly remove a key from CountTable when it is set to zero.
2020-01-10 15:24:33 +01:00
Andreas Rumpf
3a39ab83ac
fixes an asyncftpclient bug; refs #13096 [backport]
2020-01-10 09:42:21 +01:00
Timothee Cour
4cd86c0842
typetraits: fixes #6454 ; genericParams; added lenTuple; added tuple type get ( #13064 )
2020-01-10 08:51:37 +01:00
Tomohiro
a33b72af49
Fix error check code in osproc ( #13090 ) [backport]
2020-01-09 18:00:41 +01:00
Teashrock
27fee4d8b4
Deleted misplaced separator ( #13085 ) [backport]
...
Misplaced separator, which was constantly breaking compilation on Haiku OS, was deleted.
2020-01-09 11:48:13 +01:00
cooldome
871d5e79b1
distinctBase type trait for distinct types ( #13031 )
2020-01-08 00:36:57 +01:00
Miran
1551fff853
clean up deprecated stuff and unused imports in tests ( #13059 )
2020-01-07 09:49:08 +01:00
Araq
ae68ff959b
fixes #12996
2020-01-05 09:42:44 +01:00
Araq
a1beeb313f
fixes #13032
2020-01-04 19:33:49 +01:00
Sam Wang
441cacf70f
Added fix for handling TaintedStrings in streams and httpclient ( #12969 )
...
* Added fix for taint mode in streams and httpclient
* Removed taintMode export from system.nim
2019-12-29 17:37:22 +01:00
Simon Krauter
37e93eab66
parsecfg: retain CRLF line breaks, fixes #12970 ( #12971 )
2019-12-29 15:39:48 +01:00
Jack Tang
21ea1094ef
Allow customize Host header
2019-12-28 17:26:02 +00:00
Araq
3516947642
osproc: fixes regression
2019-12-24 17:33:27 +01:00
Araq
8f17a70fe1
ported osproc.nim to ARC
2019-12-24 17:33:27 +01:00
Araq
fbb8052e3a
fixes the distros.nim regression
2019-12-24 17:33:27 +01:00
Ico Doornekamp
28466ce6fc
Auto-initialize deques ( #12879 )
2019-12-21 21:01:34 +01:00
Emery Hemingway
148f6d9820
Implement NixOS distro check ( #12914 )
2019-12-18 08:01:58 +01:00
Timothee Cour
e5ed4c1b7d
fix json regression D20191212T144944 ( #12902 ) [backport]
2019-12-15 23:04:06 +01:00
Krzysztof Majk
e4e74a5565
remove unused import ( #12900 )
2019-12-15 22:59:08 +01:00