From e52d5652c52ab41b99fea913cd683165797c1a0c Mon Sep 17 00:00:00 2001 From: Matjaz Date: Mon, 10 Jan 2022 22:32:31 +0100 Subject: [PATCH] Fix content beginning for titan content. --- uplink-gemini/lib/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uplink-gemini/lib/request.js b/uplink-gemini/lib/request.js index 47fbc8c..138cf76 100644 --- a/uplink-gemini/lib/request.js +++ b/uplink-gemini/lib/request.js @@ -45,7 +45,7 @@ module.exports = class Request { this.path = decodeURIComponent(geminiUrl.pathname); this.search = geminiUrl.search.substring(1); //remove '?' from string if(this.protocol === 'titan:') { - this.content = this.rawRequest.slice(this.rawRequest.indexOf('\r\n') + 3); + this.content = this.rawRequest.slice(this.rawRequest.indexOf('\r\n') + 2); } } catch(err) { console.log(err);