[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/websocket 058e8f4696 059/114: Fix issue with missing \r
From: |
ELPA Syncer |
Subject: |
[elpa] externals/websocket 058e8f4696 059/114: Fix issue with missing \r\n when using custom headers. |
Date: |
Wed, 15 Feb 2023 20:59:00 -0500 (EST) |
branch: externals/websocket
commit 058e8f46962f99b5c63824aec99ad81b295f1a7b
Author: Andrew Hyatt <ahyatt@gmail.com>
Commit: Andrew Hyatt <ahyatt@gmail.com>
Fix issue with missing \r\n when using custom headers.
---
websocket-test.el | 2 +-
websocket.el | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/websocket-test.el b/websocket-test.el
index 772477b804..cfb2db00fd 100644
--- a/websocket-test.el
+++ b/websocket-test.el
@@ -220,7 +220,7 @@
'(("ext1" . ("a" "b=2"))
("ext2")) nil)))
(should (equal
- (concat base-headers "Foo: bar\r\nBaz: boo\r\n")
+ (concat base-headers "Foo: bar\r\nBaz: boo\r\n\r\n")
(websocket-create-headers "ws://www.example.com/path"
"key" nil nil '(("Foo" . "bar")
("Baz" . "boo"))))))
(flet ((url-cookie-generate-header-lines
diff --git a/websocket.el b/websocket.el
index a98344b3a8..f175bf623d 100644
--- a/websocket.el
+++ b/websocket.el
@@ -947,8 +947,9 @@ All these parameters are defined as in `websocket-open'."
(mapconcat 'identity (cdr ext) "; "))))
extensions ", ")))
(when cookie-header cookie-header)
- (mapconcat (lambda (cons) (format "%s: %s" (car cons) (cdr
cons)))
- custom-headers-alist "\r\n")
+ (concat (mapconcat (lambda (cons) (format "%s: %s" (car
cons) (cdr cons)))
+ custom-headers-alist "\r\n")
+ (when custom-headers-alist "\r\n"))
"\r\n")
host-port
key
- [elpa] externals/websocket 923e74d686 038/114: Merge pull request #40 from ilysym/fragmented-header, (continued)
- [elpa] externals/websocket 923e74d686 038/114: Merge pull request #40 from ilysym/fragmented-header, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket f7d3fb5409 045/114: Fix issue with handling multibyte characters., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket ccbe93ac8b 049/114: Stop checking certs in functional test., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 33d0406901 057/114: Reflow function documentation., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 268a0726b8 062/114: execute handshake after process status moved to open, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket c045acb374 039/114: Add test for fragmented headers., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket f18bfea59b 043/114: Made functional tests compile cleanly., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 23ec19933d 050/114: Various idiomatic changes., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 99d3b3e695 053/114: need another sleep on my environment, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket c193d6f867 058/114: Add ability for clients to pass custom headers., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 058e8f4696 059/114: Fix issue with missing \r\n when using custom headers.,
ELPA Syncer <=
- [elpa] externals/websocket 7d2adf2187 061/114: Update version to 1.9., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket d28b6b4633 065/114: ensure handshake is performed, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 38c1f20cb3 066/114: ensure handshake called once, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket d34f5f095d 070/114: Update version to 1.10., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 71f2290962 073/114: Delete .DS_Store, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket d8ef1b764a 074/114: Merge pull request #55 from raxod502/patch-1, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket ff566c4ad7 077/114: Fix some performance bottlenecks., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 6369b4fc48 080/114: return value of websocket-mask needs to be unibyte, ELPA Syncer, 2023/02/15
- [elpa] externals/websocket 37ef222d62 082/114: Stop converting the webmask to unibyte., ELPA Syncer, 2023/02/15
- [elpa] externals/websocket c4f17b1b70 090/114: Add `'run` to handshake status, ELPA Syncer, 2023/02/15