Erik Dubbelboer
c2b317d47d
Go 1.26 and golangci-lint updates ( #2146 )
...
Keep Go 1.24 compatibility for now (by not using `wg.Go()`).
2026-02-21 10:28:39 +01:00
Kashiwa
ed2d390623
fix: incorrect handling of negative cookie.maxAge #1900 ( #1902 )
2024-11-15 12:53:08 +08:00
Gürkan Yeşilyurt
a77e9c6b79
add support for CHIPS (Cookies Having Independent Partitioned State) ( #1752 )
...
* add support for CHIPS (Cookies Having Independent Partitioned State)
* fix comment lines
* Update cookie.go fix lint error: should omit comparison to bool constant
2024-04-08 18:23:23 +02:00
Erik Dubbelboer
a04cd8c39f
Move Fuzz tests into their own file
...
This is required for https://github.com/google/oss-fuzz/pull/11453
2024-01-09 13:01:31 +01:00
nickajacks1
fec7681cdb
chore: move cookie fuzz test to go 1.18 fuzzing ( #1686 )
2024-01-04 15:04:50 +01:00
Erik Dubbelboer
7a5afddf5b
Use %v for errors and %q for strings ( #1262 )
...
Mostly in tests.
2022-04-01 18:11:16 +02:00
Erik Dubbelboer
9f2c63676d
Lower go test time
2021-06-18 14:57:18 +02:00
Erik Dubbelboer
a18c6322a2
Fix cookie panic
2021-05-21 12:11:09 +02:00
Erik Dubbelboer
c3d82ca3a4
Speed up testing by running tests in parallel
2019-10-16 10:20:13 +02:00
Rem
9ba4cef1ba
Support SameSite value "None" cookie attribute ( #581 )
...
* Support SameSite value "None" cookie attribute
* Fix typo in CookieSameSiteNoneMode comment
* fix comment for SameSite None
2019-06-14 16:07:33 +02:00
Shulhan
4c53f113c5
all: pre-allocated slice with possible known size
...
This fix is based on suggestion of "prealloc" static analysis tool [1].
Per note of the tool's author suggestion, its recommended to allocate the
slice length/capability, if we known their possible size. This is to
minimize "append" to re-allocate the slice underlying array.
[1] https://github.com/alexkohler/prealloc
2019-01-30 20:42:28 +01:00
Matt Reyer
62dcd6fdce
Support SameSite cookie attribute ( #488 )
...
SameSite cookie attribute implementation.
2018-12-13 21:34:49 +06:30
David Byttow
dbc9965d33
Adds support for max-age cookie value. Fixes #184 ( #412 )
...
Adds support for max-age cookie value
2018-09-13 12:19:38 +08:00
Erik Dubbelboer
7796335d5f
Do case insensitive comparisons for headers and cookies
2018-09-11 20:07:09 +03:00
Aliaksandr Valialkin
45697fe30a
Issue #141 : do not urlencode cookies
...
https://tools.ietf.org/html/rfc6265 says nothing about cookies encoding.
2016-07-18 18:25:03 +03:00
Aliaksandr Valialkin
efa9cb909e
Issue #121 : Added a test to make sure equal and space chars may be used inside cookie values
2016-06-24 17:22:27 +03:00
Aliaksandr Valialkin
1498d8174e
Issue #73 : added 'HttpOnly' and 'secure' flags support to Cookie
2016-03-29 16:12:59 +03:00
Aliaksandr Valialkin
6489c32a90
Added AcquireCookie / ReleaseCookie helpers
2016-02-19 13:03:35 +02:00
Aliaksandr Valialkin
9f7463cd28
Access Cookie members via accessors
2015-11-22 13:29:21 +02:00
Aliaksandr Valialkin
48c0f89ee7
Added Stringer implementations to URI, Args and Cookie
2015-11-19 12:51:34 +02:00
Aliaksandr Valialkin
f1ff68f9f1
Optimized args, cookies and headers parsing
2015-11-05 14:28:07 +02:00
Aliaksandr Valialkin
236d4bd461
Added Cookie.ParseBytes to be consistent with Args
2015-11-05 12:54:10 +02:00
Aliaksandr Valialkin
87105b99cb
Added response cookies support
2015-11-05 12:07:54 +02:00
Aliaksandr Valialkin
4a823fa707
Properly encode cookie without name
2015-11-04 19:02:49 +02:00
Aliaksandr Valialkin
86ddfc73be
Skip empty cookies
2015-11-04 18:08:29 +02:00
Aliaksandr Valialkin
4123c87e7c
Initial support of request cookies
2015-11-03 19:08:34 +02:00