Commit 8aac6a76 authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Fixes access to protocol variable to determine if the request uses http or https

parent 491ad6c8
...@@ -383,7 +383,7 @@ export class QuizEntity extends AbstractEntity implements IQuizEntity { ...@@ -383,7 +383,7 @@ export class QuizEntity extends AbstractEntity implements IQuizEntity {
auth: `${settings.amqp.managementApi.user}:${settings.amqp.managementApi.password}`, auth: `${settings.amqp.managementApi.user}:${settings.amqp.managementApi.password}`,
}; };
(settings.amqp.managementApi.host.startsWith('https') ? https : http).get(reqOptions, response => { (settings.amqp.managementApi.protocol === 'https:' ? https : http).get(reqOptions, response => {
let data = ''; let data = '';
response.on('data', (chunk) => { response.on('data', (chunk) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment