emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: allow EWW to upload files ending in newline


From: ozzloy
Subject: Re: allow EWW to upload files ending in newline
Date: Mon, 28 Aug 2023 17:35:13 -0700

I would appreciate it if an expert on gnus and/or eww could
review the patch attached to the following message.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63941#53

here's the bug fixing part of the diff inline for ease of
reference,

---
diff --git a/lisp/gnus/mm-url.el b/lisp/gnus/mm-url.el
index 11847a79f17..5b68b25ec2e 100644
--- a/lisp/gnus/mm-url.el
+++ b/lisp/gnus/mm-url.el
@@ -433,13 +433,12 @@ mm-url-encode-multipart-form-data
       (insert (number-to-string filedata))))))
  ((equal name "submit")
   (insert
-   "Content-Disposition: form-data; name=\"submit\"\r\n\r\nSubmit\r\n"))
+   "Content-Disposition: form-data; name=\"submit\"\r\n\r\nSubmit"))
  (t
   (insert (format "Content-Disposition: form-data; name=%S\r\n\r\n"
   name))
   (insert value)))
- (unless (bolp)
-  (insert "\r\n"))))
+ (insert "\r\n")))
     (insert "--" boundary "--\r\n")
     (buffer-string)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]