1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2025-06-05 01:09:17 +02:00

- [gemini] prevented sending fragment part of the IRI to server;

- chaged prefix for links in gemini streams.
This commit is contained in:
cage
2021-11-07 10:31:01 +01:00
parent 04a08a8043
commit 60a66d6ea9
3 changed files with 9 additions and 9 deletions

View File

@@ -522,9 +522,9 @@ gemini.link.foreground = magenta
gemini.link.attribute = bold
gemini.link.scheme.gemini.prefix = "→ "
gemini.link.scheme.gemini.prefix = "→ "
gemini.link.scheme.other.prefix = " "
gemini.link.scheme.other.prefix = "→🕸 "
gemini.quote.prefix = "🞂 "

View File

@@ -202,12 +202,12 @@ open "^((gemini://)|(\\.)|(/)).+txt$" with "tinmop"
open "^((gemini://)|(\\.)|(/)).+sh$" with "tinmop"
open ".gpub$" with "tinmop"
######################
# EXPERIMENTAL ZONE #
######################
#########################
# EXPERIMENTAL ZONE #
#########################
# use fragment of a gemini IRI/URI as a searching criteria for the downloaded page
# E.g. gemini://foo/bar.gmi#baz will jump to the first occurence of "baz"
# the fragment is used as a regular expressions
# E.g. gemini://foo/bar.gmi#baz will jump to the first occurence of "baz".
# The fragment is used as a, perl compatible, regular expression
experimental.gemini.iri.fragment.regex = no

View File

@@ -395,7 +395,7 @@
(defun request-dispatch (url manage-functions &key (certificate nil) (certificate-key nil))
(let ((parsed-iri (iri:iri-parse url)))
(multiple-value-bind (actual-iri host path query port fragment)
(multiple-value-bind (actual-iri host path query port)
(displace-iri parsed-iri)
(multiple-value-bind (status code-description meta response socket)
(gemini-client:request host
@@ -404,7 +404,7 @@
:client-certificate certificate
:query query
:port port
:fragment fragment)
:fragment nil)
(flet ((call-appropriate-function (response-type)
(funcall (getf manage-functions
response-type