mirror of
https://github.com/foomo/sesamy-go.git
synced 2025-10-16 12:35:43 +00:00
feat: handle cookies
This commit is contained in:
parent
18754b0f1a
commit
1c4f38e552
@ -96,7 +96,7 @@ func (p *Publisher) Publish(topic string, messages ...*message.Message) error {
|
|||||||
val := strings.Split(s3, "=")
|
val := strings.Split(s3, "=")
|
||||||
req.AddCookie(&http.Cookie{
|
req.AddCookie(&http.Cookie{
|
||||||
Name: val[0],
|
Name: val[0],
|
||||||
Value: val[1],
|
Value: strings.Join(val[1:], "="),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user