[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/request 6bb8d2fa49 2/3: whitespace and comment
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/request 6bb8d2fa49 2/3: whitespace and comment |
Date: |
Wed, 25 Jan 2023 18:59:44 -0500 (EST) |
branch: elpa/request
commit 6bb8d2fa4904367dd4b87cce57d825587dea2c96
Author: dickmao <none>
Commit: dickmao <none>
whitespace and comment
---
request.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/request.el b/request.el
index 71318b150b..dc2802faf9 100644
--- a/request.el
+++ b/request.el
@@ -913,7 +913,10 @@ BUG: Simultaneous requests are a known cause of cookie-jar
corruption."
(error (concat "request--curl-command-args: "
"only one buffer or data entry
permitted"))
(setq stdin-p t)))
- (list name (if (plist-get (cdr item) :use-contents)
"<" "@") (or (plist-get (cdr item) :file) "-") (car item)
+ (list name
+ (if (plist-get (cdr item) :use-contents) "<"
"@")
+ (or (plist-get (cdr item) :file) "-")
+ (car item)
(if (plist-get (cdr item) :mime-type)
(format ";type=%s" (plist-get (cdr item)
:mime-type))
"")))
@@ -947,9 +950,12 @@ posting fields, FILES containing one or more lists of the
form
(NAME . BUFFER)
(NAME . (FILENAME :buffer BUFFER))
(NAME . (FILENAME :data DATA))
+ (NAME . (FILENAME :data DATA :use-contents t))
with NAME and FILENAME defined by curl(1)'s overwrought `--form` switch format,
TIMEOUT in seconds, RESPONSE a mandatory struct, ENCODING, and SEMAPHORE,
-an internal semaphore.
+an internal semaphore. Adding `:use-contents t` sends a text field
+with the file's contents as opposed to attaching a file as described
+in curl(1).
Redirection handling strategy
-----------------------------