Skip to content

Commit e153341

Browse files
committed
Follow a redirect URL
1 parent b82cec3 commit e153341

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/org/netbeans/modules/php/wordpress/WordPressPhpModuleExtender.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ private String getDownloadUrl() {
297297
try {
298298
versionCheckApi.parse();
299299
downloadUrl = versionCheckApi.getDownload();
300+
// follow a redirect url
301+
// it seems that the redirect url is used https
302+
downloadUrl = downloadUrl.replace("http://", "https://"); // NOI18N
300303
} catch (IOException ex) {
301304
downloadUrl = WP_DL_URL_DEFAULT;
302305
}

0 commit comments

Comments
 (0)