[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ae2587e 5/8: Extend simple POST test to check content-type
From: |
Stefan Monnier |
Subject: |
[elpa] master ae2587e 5/8: Extend simple POST test to check content-type and body |
Date: |
Mon, 30 Mar 2020 09:06:29 -0400 (EDT) |
branch: master
commit ae2587ebc6f3cfe56fa2a3682f4d98ddff41ab0c
Author: jcaw <address@hidden>
Commit: jcaw <address@hidden>
Extend simple POST test to check content-type and body
Want to ensure we can access both of these, even in a request type that
`web-server` already natively handles.
---
web-server-test.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/web-server-test.el b/web-server-test.el
index 78c6efc..01e08f8 100644
--- a/web-server-test.el
+++ b/web-server-test.el
@@ -177,7 +177,11 @@
org=-+one%0A-+two%0A-+three%0A-+four%0A%0A&beg=646&end=667&path=%2Fcomplex.org")
- three
- four
-"))))
+"))
+ (should (string= (cdr (assoc :CONTENT-TYPE headers))
+ "application/x-www-form-urlencoded;
charset=UTF-8"))
+ (should (string= (oref request body)
+
"org=-+one%0A-+two%0A-+three%0A-+four%0A%0A&beg=646&end=667&path=%2Fcomplex.org"))))
(ws-stop server))))
(ert-deftest ws/simple-post ()
- [elpa] master updated (c7480d7 -> b0d5113), Stefan Monnier, 2020/03/30
- [elpa] master 7110ffa 1/8: Make network processes synchronous, Stefan Monnier, 2020/03/30
- [elpa] master 7071410 4/8: Store CONTENT-TYPE header - don't skip it, Stefan Monnier, 2020/03/30
- [elpa] master ae2587e 5/8: Extend simple POST test to check content-type and body,
Stefan Monnier <=
- [elpa] master e3e2608 6/8: Add test for a simple JSON post, Stefan Monnier, 2020/03/30
- [elpa] master 33afdb4 7/8: Bump version to 0.1.2, Stefan Monnier, 2020/03/30
- [elpa] master b0d5113 8/8: Merge commit '33afdb46e1cd61251736816d965495525b36c9cd', Stefan Monnier, 2020/03/30
- [elpa] master ca7e796 3/8: Add slot for the body of a request, Stefan Monnier, 2020/03/30
- [elpa] master cafa5b7 2/8: In old Emacs, :nowait t (overabundance of caution), Stefan Monnier, 2020/03/30