summaryrefslogtreecommitdiff
path: root/modules/cookies/cookies.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2024-11-24 23:16:31 +0100
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2024-11-24 23:16:31 +0100
commit175cb0700b86134d3b04eab23d100dce2c3b6d56 (patch)
treea48b69aafeaf4a8690fba9b3d0bbe4ac9e64ecf3 /modules/cookies/cookies.go
parent653be4548b0883532665997a4624e56fdf7c02a6 (diff)
Change cache backend from sqlite to bbolt
Diffstat (limited to 'modules/cookies/cookies.go')
-rw-r--r--modules/cookies/cookies.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/cookies/cookies.go b/modules/cookies/cookies.go
index 2af2a27..2f57a3f 100644
--- a/modules/cookies/cookies.go
+++ b/modules/cookies/cookies.go
@@ -51,10 +51,6 @@ func (m Module) AdaptTransport(t http.RoundTripper) http.RoundTripper {
return flyscrape.RoundTripFunc(func(r *http.Request) (*http.Response, error) {
for _, store := range stores {
for _, cookie := range store.Cookies(r.URL) {
- // Unquote cookie value
- if len(cookie.Value) >= 2 && cookie.Value[0] == '"' && cookie.Value[len(cookie.Value)-1] == '"' {
- cookie.Value = cookie.Value[1 : len(cookie.Value)-2]
- }
r.AddCookie(cookie)
}
}