Fix content beginning for titan content.

This commit is contained in:
Matjaz
2022-01-10 22:32:31 +01:00
parent f43d8e2722
commit e52d5652c5

View File

@ -45,7 +45,7 @@ module.exports = class Request {
this.path = decodeURIComponent(geminiUrl.pathname); this.path = decodeURIComponent(geminiUrl.pathname);
this.search = geminiUrl.search.substring(1); //remove '?' from string this.search = geminiUrl.search.substring(1); //remove '?' from string
if(this.protocol === 'titan:') { 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) { } catch(err) {
console.log(err); console.log(err);