changeset 109095:c9fdfb1ca05e

2010-07-01 Mark A. Hershberger <mah@everybody.org> * url-http.el (url-http-create-request): Add a CRLF on the end so that POSTs with content to https urls work. See <https://bugs.launchpad.net/mediawiki-el/+bug/540759> Prior to this, the following request would not terminate: (let ((url-request-method "POST") (url-request-data "action=login")) (url-retrieve-synchronously "https://example.org/wiki/api.php"))
author Mark A. Hershberger <mah@everybody.org>
date Thu, 01 Jul 2010 14:02:43 -0400
parents 3c35c7d2d79b
children 43b10f3ac90c
files lisp/url/ChangeLog lisp/url/url-http.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/url/ChangeLog	Thu Jul 01 14:34:40 2010 +0200
+++ b/lisp/url/ChangeLog	Thu Jul 01 14:02:43 2010 -0400
@@ -1,3 +1,9 @@
+2010-07-01  Mark A. Hershberger  <mah@everybody.org>
+
+	* url-http.el (url-http-create-request): Add a CRLF on the end so
+	that POSTs with content to https urls work. See
+	<https://bugs.launchpad.net/mediawiki-el/+bug/540759>
+
 2010-06-22  Mark A. Hershberger  <mah@everybody.org>
 
 	* url-parse.el (url-user-for-url, url-password-for-url):
--- a/lisp/url/url-http.el	Thu Jul 01 14:34:40 2010 +0200
+++ b/lisp/url/url-http.el	Thu Jul 01 14:02:43 2010 -0400
@@ -339,7 +339,7 @@
              ;; End request
              "\r\n"
              ;; Any data
-             url-http-data))
+             url-http-data "\r\n"))
            ""))
     (url-http-debug "Request is: \n%s" request)
     request))