From d494571b382f50f98ba57ce3f2cd0e5e675a2f7a Mon Sep 17 00:00:00 2001 From: cage Date: Thu, 16 Mar 2023 15:11:46 +0100 Subject: [PATCH] - [GUI] prevented error when loading twice a non-text resource (e.g. loading twice the same URL pointing to a bitmao image.). --- src/gui/server/public-api-gemini-stream.lisp | 27 +++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/gui/server/public-api-gemini-stream.lisp b/src/gui/server/public-api-gemini-stream.lisp index 5dcfd44..969943c 100644 --- a/src/gui/server/public-api-gemini-stream.lisp +++ b/src/gui/server/public-api-gemini-stream.lisp @@ -139,19 +139,28 @@ (t (let* ((starting-status :streaming) (gemini-stream (make-instance 'gemini-viewer::gemini-others-data-stream + :host host + :port port + :path path + :query query + :fragment fragment + :meta meta + :status-code status + :status-code-description + code-description :stream-status starting-status :download-stream response :download-socket socket)) (thread-fn (request-stream-other-document-thread gemini-stream - socket - host - port - path - query - fragment - status - code-description - meta))) + socket + host + port + path + query + fragment + status + code-description + meta))) (gemini-client:debug-gemini "response is *not* a gemini file stream") (gemini-viewer:push-db-stream gemini-stream) (gemini-viewer::downloading-start-thread gemini-stream