David 'Epper' Marshall
b8a0315574
url: fix parse ( #14456 )
2022-05-25 12:54:57 +02:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! ( #14366 )
2022-05-13 06:56:21 +03:00
Alexander Medvednikov
fbb9e65c0f
all: ~500 more byte=>u8
2022-04-15 18:25:45 +03:00
Alexander Medvednikov
fb192d949b
all: replace []byte with []u8
2022-04-15 15:35:35 +03:00
Alexander Medvednikov
d4a0d6f73c
all: byte => u8
2022-04-15 14:58:56 +03:00
Nick Treleaven
7231a3f135
vlib: add `mut` for the first parameter of builtin.copy, arrays.copy and crypto ( #13702 )
2022-03-09 20:26:00 +02:00
Vincenzo Palazzo
6ea4f361a1
urllib: fixed regression in the set function ( #13455 )
2022-02-13 15:06:00 +02:00
Tim Basel
9d0a5942ac
builtin: change IError `msg` and `code` to methods + fix vlib, add a deprecation notice for the old usages ( #13041 )
2022-02-11 15:52:33 +02:00
Vincenzo Palazzo
0d1d259bb4
net.urllib: keep the query parameter order ( #13405 )
2022-02-09 17:36:12 +02:00
Alexander Medvednikov
59ed4be49a
all: update copyright year
2022-01-04 12:21:12 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init ( fix #11448 ) ( #11562 )
2021-09-21 16:20:09 +03:00
Dialga
f295469fac
net.urllib: make unescape() autofree compatible ( #11510 )
2021-09-16 07:09:20 +03:00
Dialga
00433ba460
net.urllib: avoid a double free in set_path() when compiled with -autofree ( #11427 )
2021-09-07 21:11:03 +03:00
Dialga
9b983bdd95
net.urllib: fix double free in escape() ( #11390 )
2021-09-04 14:57:09 +03:00
JalonSolov
6e41561124
net: fix download_file ( #10439 )
2021-06-13 01:40:32 +03:00
Ryan Roden-Corrent
a368800b26
net.urllib: don't crash on str() if url is missing host ( #10313 )
2021-06-02 16:12:27 +03:00
pancake
49330af715
net.urllib: fix #9748 out of bounds accesses in unescape() ( #9770 )
2021-04-19 16:43:35 +03:00
Delyan Angelov
dcab79146b
net.urllib: allow `urllib.parse_query("format=%l")`
2021-03-30 20:19:33 +03:00
Alexander Medvednikov
77d5fcca59
urllib: a temporary autofree fix
2021-03-15 21:12:11 +01:00
spaceface
b9a381f101
all: migrate to the new Option (p. 1) ( #8924 )
2021-02-28 22:24:29 +03:00
zakuro
f54c1a5cc2
all: add strings.Builder.write_string and use write_string instead of write ( #8892 )
2021-02-22 13:18:11 +02:00
Delyan Angelov
e5a84719ca
all: require calling `optfn() ?` / `optfn() or {...}` for `fn optfn() ? {}`
2021-01-26 16:43:17 +02:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 ( #8029 )
2021-01-18 13:20:06 +01:00
Delyan Angelov
ef18fb837c
net.urllib: workaround an autofree bug for `if cond && opt() {`
2021-01-12 16:29:04 +02:00
Tomas Hellström
cc17f145c5
websocket: make compile with autofree ( #8023 )
2021-01-11 09:03:10 +01:00
Alexander Medvednikov
5a70eba8e1
all: byte.str() => byte.ascii_str()
2021-01-05 19:14:37 +01:00
Delyan Angelov
31ef921ef2
ci: fix warnings/errors due to the vfmt change
2020-10-15 16:17:52 +03:00
Alexander Medvednikov
3410705974
autofree: lots of fixes
2020-09-05 12:00:35 +02:00
Maciej Obarski
7bd2804ce9
all: automatic error propagation in place of "or { return(err) }"
2020-08-29 01:58:03 +02:00
Delyan Angelov
36eae1c175
builtin: x.vstring() instead of string(x) ( #6102 )
2020-08-10 18:05:26 +02:00
Emily Hudson
c84bafbdae
vlib,cgen: cleanup array inits using `.repeat() instead of new init syntax
2020-06-27 21:46:04 +02:00
ka-weihe
7f225f2eaa
map: rename size to len
2020-06-21 16:51:02 +02:00
yuyi
5ae8853648
all: change `f mut Foo` to `mut f Foo`
2020-06-04 10:35:40 +02:00
Enzo Baldisserri
d22609051a
checker: CallExpr with handled optional returns plain type
2020-05-25 11:32:14 +02:00
yuyi
7f4cf08516
parser: check `(mut f Foo)` syntax
2020-05-17 13:51:18 +02:00
yuyi
9f4d498ff1
all: update`import ()` and `[]array`
2020-04-26 13:49:31 +02:00
Delyan Angelov
582ee9e643
urllib: put braces in << | expressions in urllib.v to make test pass
2020-04-07 22:58:29 +03:00
spaceface777
ef8c1203b4
cleanup: replace C for loops with range
2020-02-24 17:55:16 +01:00
Delyan Angelov
0ad5d53423
net.http: more robust handling of relative /path URL redirects
2020-02-12 14:52:39 +01:00
joe-conigliaro
7f709c3285
update copyright years
2020-02-03 05:00:36 +01:00
Shun Sakai
c8c43a2475
update copyright year
2020-01-23 21:04:46 +01:00
Chris Watson
84a6c019e8
http: refactor and reduce duplication
2020-01-16 18:16:11 +01:00
Alexander Medvednikov
848cd3cb3e
run vfmt on http, net, sync, strconv
2019-12-22 01:57:50 +03:00
Alexander Medvednikov
dc83e30a44
access modifiers: update tests/examples
2019-12-13 20:09:11 +03:00
Alexander Medvednikov
b8f728590b
string: last_index ?int
2019-12-12 21:54:48 +03:00
Delyan Angelov
13769f440f
vweb: continue after bad http client connection; performance fixes
...
* Enable compiling vweb with -prod (by supressing 'declared and not used' warning about 'reset') .
* Fix http responses (now wrk is happy and shows no errors) by adding a Content-Length header.
* Fix -g compilation for urllib.v .
* vweb: println action= only in debug mode.
* vweb: max request headers counting fix.
* Make vweb.html get a 'ctx mut Context' param, just like the other methods.
* vweb: simplify add_header.
* Use a string builder for the most common html case so that the response http text can be send in one go.
* vweb: reduce _STR/string interpolation usage in the most common html response case.
* vweb: refactor common http response formatting into Context.send_response_to_client/2 method.
2019-12-11 17:32:54 +03:00
Alexander Medvednikov
ad6adf327e
vlib: fix missing `else{}` in match statements
2019-12-07 17:23:37 +03:00
Alexander Medvednikov
c8d111924d
check unused and unmodified vars in all modules, not just main
2019-12-06 18:43:56 +03:00
Alexander Medvednikov
2651b8957a
parser: fix unreachable code error in if a := opt()
2019-11-30 15:17:27 +03:00
Alexander Medvednikov
81d4f66fbb
string: make `index()` return `?int` instead of `int`/-1
2019-11-30 13:21:21 +03:00