Skip to content

Commit

Permalink
bingai: fix find signature failed
Browse files Browse the repository at this point in the history
  • Loading branch information
xhcoding committed Oct 26, 2023
1 parent abfba5f commit c40da56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aichat-bingai.el
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ to the websocket protocol.
(error "Your network settings are preventing access to this feature.")
(let* ((data (aichat-json-parse body))
(result-value (aichat-json-access data "{result}{value}"))
(signature (cdr (seq-find (lambda (header) (string= (car header) "X-Sydney-EncryptedConversationSignature"))
(signature (cdr (seq-find (lambda (header) (string= (downcase (car header)) "x-sydney-encryptedconversationsignature"))
headers))))
(if (not (string= "Success" result-value))
(error "Create conversation failed: %s" body)
Expand Down

0 comments on commit c40da56

Please sign in to comment.