From: Tim Vaughan Date: Wed, 11 Sep 2019 18:55:37 +0000 (+0200) Subject: Proper handling of empty mime-type parameter entries. X-Git-Tag: v2.0.1 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=a352b567eba34c28642ec5640e3156acdf3498d7;p=elpher.git Proper handling of empty mime-type parameter entries. --- 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 "=")))