summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #16436 (#16695)Yuriy Glukhov2021-01-142-4/+27
| | | | | * Fixes #16436 * Comments addressed
* fix #16703; revert most of #16480; add tests/stdlib/tmimetypes.nim (#16711)Timothee Cour2021-01-131-47/+19
|
* Check for errors after sendPendingSslData (#16696)Yuriy Glukhov2021-01-131-6/+2
| | | | | * Check for errors after sendPendingSslData * Leftover comment removed
* refactor cmpNimIdentifier (#16611)flywind2021-01-133-9/+7
| | | | | | | | | * refactor cmpNimIdentifier * Apply suggestions from code review Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* revive PR #16320 (CRLF fix); fix #16308; Update openssl.nim (#16648)Timothee Cour2021-01-121-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update openssl.nim Fix issue # 16308 * Update openssl.nim These are also related to Issues [#16308](https://github.com/nim-lang/Nim/issues/16308) * Update openssl.nim * Add files via upload SSL PEM_read_RSAPUBKEY check * Delete topenssl_rsa_private_key.pem * Delete topenssl_rsa_public_key.pem * Delete topenssl.nim * Add files via upload * Update topenssl.nim This test makes me dizzy. Variables such as' PRSA 'must be declared in advance, otherwise they will run incorrectly. The argument uses a cString, and string also makes an error. * Update topenssl.nim ``` lhf@lhf-pc:/media/lhf/D$ cat -e ./topenssl.nim import std/wordwrap$ import openssl$ ``` * Update topenssl.nim * dos2unix tests/stdlib/topenssl.nim Co-authored-by: lihaifeng <lihaifeng@wxm.com>
* Improve uri.parseQuery to never raise an error (#16647)Mildred Ki'Lya2021-01-122-25/+27
| | | | | | | | | | | | | | | | | In case of malformed query string where there is `=` on the value, handle this character as part of the value instead of throwing an error. The following query string should no longer crash a program: key=value&key2=x=1 It will be interpreted as [("key", "value"), ("key2", "x=1")] This is correct according to latest WhatWG's HTML5 specification recarding the urlencoded parser: https://url.spec.whatwg.org/#concept-urlencoded-parser Older behavior can be restored using the -d:nimLegacyParseQueryStrict flag.
* Compile sqlite3 with -O3 flag (#16697)Yuriy Glukhov2021-01-121-1/+1
|
* Remove longestMatch in _WithPrefix iterators (#16689)konsumlamm2021-01-121-23/+15
|
* RST: implement internal targets (#16614)Andrey Makarov2021-01-113-99/+218
|
* Improve documentation of strmisc (#16665)konsumlamm2021-01-111-30/+30
| | | Simplify examples
* fix #16555, fixes #16405: len, high honors '\0' for cstring in vm (#16610)Timothee Cour2021-01-111-7/+13
|
* fix broken CI (#16663)flywind2021-01-101-1/+1
|
* Httpclient improvements (#15919)Antonis Geralis2021-01-102-108/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow passing Uri instead of strings * Teach httpclient about 308 * Deprecate request proc where httpMethod is string * More use of HttpMethod enum Also fix handling of 308, I forgot to add the hunk to the previous commit. * Well behaved redirect handler * Also remove Transfer-Encoding * Removed unused proc * Secure redirection rules Strip sensitive headers for cross-domain redirects. * Allow httpMethod to be a string again This way unknown http verbs can be used without any problem. * Respect user-specified Host header * Missed multipart argument. * Try another method * add changelog * Fix hidden deprecation warning, parseEnum failing * This is wrong * Have to do it manually, parseEnum is not suitable * Review comments * update Co-authored-by: LemonBoy <thatlemon@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Add support for Transfer-Encoding: chunked (#16636)vabresto2021-01-101-0/+44
| | | | | | | | | * Add support for Transfer-Encoding: chunked * Minor whitespace fixes * Use recv instead of recvLineInto * Undo changes to httpcore, inline changes
* Use func in lenientops (#16641)konsumlamm2021-01-091-15/+15
|
* DELETE requests should always have a content-length header (#16618)Joey2021-01-081-2/+5
| | | | | | | | | | * DELETE requests should always have a content-length header Not having DELETE in this list is causing hanging when trying to close webdriver sessions in [halonium](https://github.com/halonium/halonium/issues/10) and likely any other implementation of the webdriver protocol. Both at least chromedriver and geckodriver are affected by this issue. * Change the content length calculation to match the http spec For reference: https://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#Entity-Body
* Improve documentation for the md5 module (#16631)konsumlamm2021-01-071-14/+15
|
* Implements streams for sockets (#15729)PMunch2021-01-071-0/+181
|
* oids: switch from PRNG to random module (#16203)flywind2021-01-071-20/+19
| | | | | | | * switch from PRNG to random module * fix the regression * comments + tests * runnableExamples * make oids better
* add math.signbit (#16592)flywind2021-01-071-1/+26
|
* Fixes the asynchttpserver example some more (#16599)Dominik Picheta2021-01-071-8/+7
| | | | | I dislike this example a lot (busy looping for FDs to be closed is a very poor waste of resources) but at least with these changes it's a little bit better.
* Jsonutils: pass opt for object in object (#16615)inv20042021-01-071-1/+1
| | | | | * jsonutils: fromJson forward opt param fix * jsonutils: object in object test + fix: opt pass
* Minor docs/format changes (cpuinfo, volatile) (#16602)konsumlamm2021-01-062-12/+11
|
* Improve documentation for deques (#16589)konsumlamm2021-01-061-156/+106
|
* macros.quote: document hard to use `op`; add more useful examples (#16489)Timothee Cour2021-01-061-23/+71
| | | | | | | | | | | | | | | | | * macros.quote: document hard to use `op`; add more useful examples * add back doc comment removed in a60305fbf3897cd90680e693dd4c0db2334d85d4 * address comment * fixup * clarify quoting rules * Update lib/core/macros.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* jsonutils: fromJson forward opt param fix (#16612)inv20042021-01-061-4/+4
|
* Link the <fenv.h> header (#16597)konsumlamm2021-01-051-2/+4
|
* make cstrutils work in VM (#16590)flywind2021-01-053-102/+122
| | | | | * make cstrutils work in VM * more
* Improve documentation for complex (#16588)konsumlamm2021-01-051-101/+159
| | | | | | | | | | | | | * Improve documentation for complex Add missing doc comments * Add runnableExample Add links for principal values Optimize `-` Change var to let * Use std prefix for imports
* fix #9125 (#16582)flywind2021-01-051-1/+11
| | | | | | | | | | | | * fix #9125 * Update tests/stdlib/tmath.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * back Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* remove duplication in asynchttpserver examples (#16586)Timothee Cour2021-01-051-48/+28
| | | | | | | * remove duplication in asynchttpserver examples * fixup * add comment showing how to run snippet locally
* fix #16506 by changing the example (#16580)Miran2021-01-041-2/+2
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* clean up the docs of some modules under lib/js (#16579)flywind2021-01-047-55/+55
|
* make --gc:arc --exceptions:quirky work again [backport:1.4] (#16583)Andreas Rumpf2021-01-042-10/+20
| | | | | * make --gc:arc --exceptions:quirky work again [backport:1.4] * fixes #16404 [backport:1.4]
* fix #16499 (#16514)flywind2021-01-041-10/+14
|
* Add backwards index overload for `[]` for JsonNode (#16501)Neelesh Chandola2021-01-041-0/+13
| | | | | | | | | | | * Add backwards index overload for `[]` for JsonNode * Add since Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Add docs, example, and changelog Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Add posix_utils.osReleaseFile (#16452)Juan Carlos2021-01-041-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add posix_utils.osReleaseFile * Update lib/posix/posix_utils.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update lib/posix/posix_utils.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Add a basic sanity test * Add a basic sanity test * Add a basic sanity test * Add a basic sanity test * https://github.com/nim-lang/Nim/pull/16452#issuecomment-753364096 * Update lib/posix/posix_utils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/posix/posix_utils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update changelog.md Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Improve sequtils documentation (#16559)konsumlamm2021-01-041-78/+79
| | | | | | | * Improve sequtils documentation Uncomment assertions in tests * Use present tense
* fix #12311 (#16578)flywind2021-01-041-4/+7
|
* Improve documentation for critbits (#16568)konsumlamm2021-01-031-135/+107
|
* fix #12958 (#16565)Roman Inflianskas2021-01-031-18/+29
| | | | | | | | | | Sync between Linux kernel code (header: https://github.com/torvalds/linux/blob/master/tools/include/uapi/linux/sched.h) and the linux module in lib. `CLONE_STOPPED` was marked as deprecated, as it was removed in the Linux kernel upstream. Fixes #12958.
* fix #8412 (#16563)flywind2021-01-031-6/+12
| | | | | | | | | | | | | | | | | * Revert "Make config processing order test more robust" This reverts commit cf714c129f7dd598863d1cc588e685df2438c658. * enable tmath tests * fix #8412 * Revert "enable tmath tests" This reverts commit 293b63f57ef71e6c43b9faf24883c998c40a9484. * add tests * fix
* Fix #16554 (#16564)hlaaftana2021-01-031-2/+3
|
* Algorithm improvements (#16529)konsumlamm2021-01-021-134/+142
| | | | | | | | | | | | * Improve documentation for algorithm Remove unused import in algorithm tests Improve formatting * Reapply fix for reverse on empty openArray * Use 3rd person singular Add more explanations.
* fix #16061 (#16551)flywind2021-01-021-4/+10
|
* fix #16542 (#16549)flywind2021-01-021-2/+21
| | | * fix #16542
* Add mimetypes.mimesLongest (#16480)Juan Carlos2021-01-021-1/+28
| | | | | | | | | | | | | | | | | | | * Allow single alloc mimetypes ops * Allow single alloc mimetypes ops * Update lib/pure/mimetypes.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190 * https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190 * https://github.com/nim-lang/Nim/pull/16480#issuecomment-753349661 * update changelog Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* big steps torwards an efficient, simple IC implementation (#16543)Andreas Rumpf2021-01-021-2/+2
| | | | | | | | | | | | | | | | | | | * reworked ID handling * the packed AST now has its own ID mechanism * basic serialization code works * extract rodfiles to its own module * rodfiles: store and compare configs * rodfiles: store dependencies * store config at the end * precise dependency tracking * dependency tracking for rodfiles * completed loading of PSym, PType, etc * removed dead code * bugfix: do not realloc seqs when taking addr into an element * make IC opt-in for now * makes tcompilerapi green again * final cleanups Co-authored-by: Andy Davidoff <github@andy.disruptek.com>
* Documentation only Testament unittest (#16532)Juan Carlos2021-01-011-9/+13
| | | | | | | | | * Link Testament from unittest doc * Update lib/pure/unittest.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* reuse const (#16422)n5m2021-01-011-1/+1
|