Skip to content

Commit

Permalink
add Accept header to create conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
juzeon committed Feb 16, 2024
1 parent d81f26c commit 0b6cf6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sydney/conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ func (o *Sydney) createConversation() (CreateConversationResponse, error) {
if err != nil {
return empty, err
}
resp, err := client.R().SetHeader("Cookie", util.FormatCookieString(o.cookies)).Get(o.createConversationURL)
resp, err := client.R().SetHeader("Accept", "application/json").
SetHeader("Cookie", util.FormatCookieString(o.cookies)).Get(o.createConversationURL)
if err != nil {
return empty, err
}
Expand Down

0 comments on commit 0b6cf6e

Please sign in to comment.