Ignore:
Timestamp:
2010-01-12T09:21:53+01:00 (14 years ago)
Author:
Gubaer
Message:

fixed #2851: Proxy caching problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java

    r2817 r2826  
    8080        }
    8181    }
    82 
    83 
    8482
    8583    @Override protected void finish() {}
     
    112110            synchronized(this) {
    113111                downloadConnection = (HttpURLConnection)url.openConnection();
     112                downloadConnection.setRequestProperty("Cache-Control", "no-cache");
     113                downloadConnection.setRequestProperty("User-Agent",Version.getInstance().getAgentString());
     114                downloadConnection.setRequestProperty("Host", url.getHost());
    114115                downloadConnection.connect();
    115116            }
Note: See TracChangeset for help on using the changeset viewer.