diff options
| author | Michael Albinus | 2018-10-16 19:44:16 +0200 |
|---|---|---|
| committer | Michael Albinus | 2018-10-16 19:44:16 +0200 |
| commit | 84efc93a5525f85659955b113c427a27c80c2a71 (patch) | |
| tree | 1f843c80225a3fb7184d47c2445558fcd86271db | |
| parent | 722833d30e609655de4675dd5c25eb8460947f93 (diff) | |
| download | emacs-84efc93a5525f85659955b113c427a27c80c2a71.tar.gz emacs-84efc93a5525f85659955b113c427a27c80c2a71.zip | |
Fix Bug#32983
* lisp/net/soap-client.el: Bump version to 3.1.5.
(soap-parse-server-response): Handle also "multipart/related"
Content-Type. (Bug#32983)
| -rw-r--r-- | lisp/net/soap-client.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el index f5de05dc3d7..7c409665e44 100644 --- a/lisp/net/soap-client.el +++ b/lisp/net/soap-client.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Alexandru Harsanyi <AlexHarsanyi@gmail.com> | 5 | ;; Author: Alexandru Harsanyi <AlexHarsanyi@gmail.com> |
| 6 | ;; Author: Thomas Fitzsimmons <fitzsim@fitzsim.org> | 6 | ;; Author: Thomas Fitzsimmons <fitzsim@fitzsim.org> |
| 7 | ;; Created: December, 2009 | 7 | ;; Created: December, 2009 |
| 8 | ;; Version: 3.1.4 | 8 | ;; Version: 3.1.5 |
| 9 | ;; Keywords: soap, web-services, comm, hypermedia | 9 | ;; Keywords: soap, web-services, comm, hypermedia |
| 10 | ;; Package: soap-client | 10 | ;; Package: soap-client |
| 11 | ;; Homepage: https://github.com/alex-hhh/emacs-soap-client | 11 | ;; Homepage: https://github.com/alex-hhh/emacs-soap-client |
| @@ -2337,6 +2337,14 @@ traverse an element tree." | |||
| 2337 | (defun soap-parse-server-response () | 2337 | (defun soap-parse-server-response () |
| 2338 | "Error-check and parse the XML contents of the current buffer." | 2338 | "Error-check and parse the XML contents of the current buffer." |
| 2339 | (let ((mime-part (mm-dissect-buffer t t))) | 2339 | (let ((mime-part (mm-dissect-buffer t t))) |
| 2340 | (when (and | ||
| 2341 | (equal (mm-handle-media-type mime-part) "multipart/related") | ||
| 2342 | (equal (get-text-property 0 'type (mm-handle-media-type mime-part)) | ||
| 2343 | "text/xml")) | ||
| 2344 | (setq mime-part | ||
| 2345 | (mm-make-handle | ||
| 2346 | (get-text-property 0 'buffer (mm-handle-media-type mime-part)) | ||
| 2347 | `(,(get-text-property 0 'type (mm-handle-media-type mime-part)))))) | ||
| 2340 | (unless mime-part | 2348 | (unless mime-part |
| 2341 | (error "Failed to decode response from server")) | 2349 | (error "Failed to decode response from server")) |
| 2342 | (unless (equal (car (mm-handle-type mime-part)) "text/xml") | 2350 | (unless (equal (car (mm-handle-type mime-part)) "text/xml") |