Skip to content

Commit

Permalink
Merge pull request #16 from Kennyl/hotfix/dm5
Browse files Browse the repository at this point in the history
Fix for Dm5
  • Loading branch information
Kennyl committed Jul 14, 2015
2 parents 286c1c5 + 01b5ccc commit bf90e0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/jcomicdownloader/tools/Common.java
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ public static void downloadFile( String webSite, String outputDirectory, String
// (如果不设此项,在传送序列化对象时,当WEB服务默认的不是这种类型时可能抛java.io.EOFException)
connection.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded" );
//connection.setRequestProperty( "Accept-Language", "zh-cn" );
connection.setRequestProperty( "Accept-Language", "en-US,en;q=0.8,zh;q=0.4" );//fix for dm5
// connection.setRequestProperty("Content-Length", ""+data.length());
connection.setRequestProperty( "Cache-Control", "no-cache" );
connection.setRequestProperty( "Pragma", "no-cache" );
Expand Down

0 comments on commit bf90e0e

Please sign in to comment.