diff --git a/cffi_src/types.go b/cffi_src/types.go index bde44b7..545886b 100644 --- a/cffi_src/types.go +++ b/cffi_src/types.go @@ -152,12 +152,14 @@ type PriorityParam struct { } type Cookie struct { - Expires Timestamp `json:"expires"` - Domain string `json:"domain"` - Name string `json:"name"` - Path string `json:"path"` - Value string `json:"value"` - MaxAge int `json:"maxAge"` + Expires Timestamp `json:"expires"` + Domain string `json:"domain"` + Name string `json:"name"` + Path string `json:"path"` + Value string `json:"value"` + MaxAge int `json:"maxAge"` + Secure bool `json:"secure"` + HttpOnly bool `json:"httpOnly"` } type Timestamp struct { diff --git a/go.mod b/go.mod index b15c332..4860877 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/bogdanfinn/tls-client go 1.22.0 require ( - github.com/bogdanfinn/fhttp v0.5.29 + github.com/bogdanfinn/fhttp v0.5.30 github.com/bogdanfinn/utls v1.6.2 github.com/google/uuid v1.6.0 github.com/stretchr/testify v1.9.0 diff --git a/go.sum b/go.sum index 9d81913..51b9b7d 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7XdTA= github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA= -github.com/bogdanfinn/fhttp v0.5.29 h1:wSvVLaVuqUeW+PLL+rBofOUr7nQ/iKj1HDrqVpw/WdE= -github.com/bogdanfinn/fhttp v0.5.29/go.mod h1:bdo7riUy+lXzfGAfGX6dhwRIqlKRSxraI+4eo98lFoA= +github.com/bogdanfinn/fhttp v0.5.30 h1:oo3YVpCU/aq3x/gy+gyFnV0VsnuEd2w+O/muLUGUINA= +github.com/bogdanfinn/fhttp v0.5.30/go.mod h1:bdo7riUy+lXzfGAfGX6dhwRIqlKRSxraI+4eo98lFoA= github.com/bogdanfinn/utls v1.6.2 h1:82QYt8sjweKzW71D8/6DTAebZleRyJA+l56bplMM93M= github.com/bogdanfinn/utls v1.6.2/go.mod h1:czcHxHGsc1q9NjgWSeSinQZzn6MR76zUmGVIGanSXO0= github.com/cloudflare/circl v1.5.0 h1:hxIWksrX6XN5a1L2TI/h53AGPhNHoUBo+TD1ms9+pys=