[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 183b1a7 012/298: Construct post data correctly
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 183b1a7 012/298: Construct post data correctly |
Date: |
Thu, 9 Dec 2021 18:59:35 -0500 (EST) |
branch: elpa/webpaste
commit 183b1a7010436ec309f85a4444c1bdbc872afa72
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Construct post data correctly
---
webpaste.el | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index 20a6a3d..14c0cc1 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -66,14 +66,18 @@
(defun webpaste-providers-ix.io (text)
"Paste TEXT to http://ix.io/."
- ;; Use request.el to do request to ix.io to submit data
- (request "http://ix.io/"
- :type "POST"
- :data '(("f:1" . text))
- :parser 'buffer-string
- :success (function* (lambda (&key data &allow-other-keys)
- (when data
- (webpaste-return-url data)))))
+ (let ((post-data '()))
+ ;; Construct post data
+ (add-to-list 'post-data (cons "f:1" text))
+
+ ;; Use request.el to do request to ix.io to submit data
+ (request "http://ix.io/"
+ :type "POST"
+ :data post-data
+ :parser 'buffer-string
+ :success (function* (lambda (&key data &allow-other-keys)
+ (when data
+ (webpaste-return-url data))))))
nil)
- [nongnu] branch elpa/webpaste created (now 65f664d), ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f6b0709 001/298: first commit, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 11dcaae 008/298: Return nil, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 90bb1a9 010/298: Remove space, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 61f369e 011/298: Added function for returned url, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 183b1a7 012/298: Construct post data correctly,
ELPA Syncer <=
- [nongnu] elpa/webpaste 830704a 003/298: Added base lisp file, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 96e76a7 002/298: Added LICENSE, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ff47ecd 004/298: Added stub for the function to paste region, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b4cd028 005/298: Added function to paste entire buffer, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 68ebb2c 006/298: Add request.el as dependency, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6c9f1ff 007/298: Add ix.io as provider, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f3794ea 009/298: Send data to ix.io, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 8f074b4 013/298: Autoload the two pasting functions, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ff4194e 014/298: Make new code section for providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1114813 017/298: Move providers to customizable list with lambdas, ELPA Syncer, 2021/12/09