changeset 58606:8da26294b738

(url-http-create-request): Don't add newline after the request data.
author Andreas Schwab <schwab@suse.de>
date Sun, 28 Nov 2004 19:13:50 +0000
parents f17bc5709604
children 8f2a7330b757
files lisp/url/url-http.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/url/url-http.el	Sun Nov 28 15:42:11 2004 +0000
+++ b/lisp/url/url-http.el	Sun Nov 28 19:13:50 2004 +0000
@@ -255,15 +255,16 @@
 	   (if ref-url (concat
 			"Referer: " ref-url "\r\n"))
 	   extra-headers
-	   ;; Any data
+	   ;; Length of data
 	   (if url-request-data
 	       (concat
 		"Content-length: " (number-to-string
 				    (length url-request-data))
-		"\r\n\r\n"
-		url-request-data))
+		"\r\n"))
 	   ;; End request
-	   "\r\n"))
+	   "\r\n"
+	   ;; Any data
+	   url-request-data))
     (url-http-debug "Request is: \n%s" request)
     request))