|
|
@@ -134,7 +134,11 @@ public class HttpUtils {
|
|
|
.openConnection();
|
|
|
conn.setInstanceFollowRedirects(false);
|
|
|
conn.setConnectTimeout(5000);
|
|
|
- return conn.getHeaderField("Location");
|
|
|
+ String redirectUrl = conn.getHeaderField("Location");
|
|
|
+ if(null == redirectUrl){
|
|
|
+ redirectUrl = path;
|
|
|
+ }
|
|
|
+ return redirectUrl;
|
|
|
}
|
|
|
|
|
|
/**
|