From a352b567eba34c28642ec5640e3156acdf3498d7 Mon Sep 17 00:00:00 2001 From: Tim Vaughan Date: Wed, 11 Sep 2019 20:55:37 +0200 Subject: [PATCH] Proper handling of empty mime-type parameter entries. --- elpher.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elpher.el b/elpher.el index 8fbc60e..244df40 100644 --- a/elpher.el +++ b/elpher.el @@ -4,7 +4,7 @@ ;; Author: Tim Vaughan ;; Created: 11 April 2019 -;; Version: 2.0.0 +;; Version: 2.0.1 ;; Keywords: comm gopher ;; Homepage: https://github.com/tgvaughan/elpher ;; Package-Requires: ((emacs "26")) @@ -65,7 +65,7 @@ ;;; Global constants ;; -(defconst elpher-version "2.0.0" +(defconst elpher-version "2.0.1" "Current version of elpher.") (defconst elpher-margin-width 6 @@ -841,7 +841,7 @@ The response is assumed to be in the variable `elpher-gemini-response'." (string-empty-p mime-type-string)) "text/gemini; charset=utf-8" mime-type-string)) - (mime-type-split (split-string mime-type-string* ";")) + (mime-type-split (split-string mime-type-string* ";" t)) (mime-type (string-trim (car mime-type-split))) (parameters (mapcar (lambda (s) (let ((key-val (split-string s "="))) -- 2.20.1