forked from cory/tildefriends
Stay on https: through redirects.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3744 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -50,7 +50,7 @@ function Request(method, uri, version, headers, body, client) {
|
||||
}
|
||||
this.version = version;
|
||||
this.headers = headers;
|
||||
this.client = {peerName: client.peerName};
|
||||
this.client = {peerName: client.peerName, tls: client.tls};
|
||||
this.body = body;
|
||||
return this;
|
||||
}
|
||||
@ -471,6 +471,7 @@ if (tildefriends.https_port) {
|
||||
return secureSocket.listen(kBacklog, async function() {
|
||||
try {
|
||||
var client = await secureSocket.accept();
|
||||
client.tls = true;
|
||||
const kCertificatePath = "data/httpd/certificate.pem";
|
||||
const kPrivateKeyPath = "data/httpd/privatekey.pem";
|
||||
|
||||
|
Reference in New Issue
Block a user