mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 15:04:52 +09:00
Add compression to getInstanceName
Set the compression header when doing requests in getInstanceName.
This commit is contained in:
1 parent
c5cae30d83
commit
aaf43143df
1 file changed
+1
-1
@@ -8,7 +8,7 @@ module.exports = function(config){
|
||||
return new Promise((resolve, reject) => {
|
||||
let instance = instances[instanceID];
|
||||
if(!instance){
|
||||
needle.get(config.masterURL + '/api/slaves', (err, response) => {
|
||||
needle.get(config.masterURL + '/api/slaves', { compressed: true }, (err, response) => {
|
||||
if(err || response.statusCode != 200) {
|
||||
console.log("Unable to get JSON master/api/slaves, master might be unaccessible");
|
||||
} else if (response && response.body) {
|
||||
|
||||
Reference in new issue
Block a user