mirror of
https://github.com/strapi/strapi.git
synced 2025-11-08 22:32:02 +00:00
Merge pull request #4638 from Cow258/@4625
Fix no response when get user permission role with internal network
This commit is contained in:
commit
4c72a53536
@ -100,12 +100,13 @@ module.exports = {
|
|||||||
return await Promise.all(arrayOfPromises);
|
return await Promise.all(arrayOfPromises);
|
||||||
},
|
},
|
||||||
|
|
||||||
getPlugins(plugin, lang = 'en') {
|
getPlugins(lang = 'en') {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
request(
|
request(
|
||||||
{
|
{
|
||||||
uri: `https://marketplace.strapi.io/plugins?lang=${lang}`,
|
uri: `https://marketplace.strapi.io/plugins?lang=${lang}`,
|
||||||
json: true,
|
json: true,
|
||||||
|
timeout: 3000,
|
||||||
headers: {
|
headers: {
|
||||||
'cache-control': 'max-age=3600',
|
'cache-control': 'max-age=3600',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user