diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-12 15:47:22 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-12 18:21:16 +0200 |
| commit | e1f0ec8c89d187117bb8c8dcaf7192a5056c7b4a (patch) | |
| tree | b8bbbab9ef117679df74077e5f51661d32287466 /main/src/cgeo/geocaching/network/HtmlImage.java | |
| parent | 925f3f6177d81de33cb231ac2afb91138df04cbb (diff) | |
| download | cgeo-e1f0ec8c89d187117bb8c8dcaf7192a5056c7b4a.zip cgeo-e1f0ec8c89d187117bb8c8dcaf7192a5056c7b4a.tar.gz cgeo-e1f0ec8c89d187117bb8c8dcaf7192a5056c7b4a.tar.bz2 | |
Cleanup: do not add Content-Type to GET request
Whatever code requests its presence is probably wrong, as Content-Type
describes the type of the body, which is non-existent for a GET request.
Diffstat (limited to 'main/src/cgeo/geocaching/network/HtmlImage.java')
| -rw-r--r-- | main/src/cgeo/geocaching/network/HtmlImage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/network/HtmlImage.java b/main/src/cgeo/geocaching/network/HtmlImage.java index 6cb4b86..9bbbed5 100644 --- a/main/src/cgeo/geocaching/network/HtmlImage.java +++ b/main/src/cgeo/geocaching/network/HtmlImage.java @@ -81,7 +81,7 @@ public class HtmlImage implements Html.ImageGetter { if (absoluteURL != null) { try { final File file = LocalStorage.getStorageFile(geocode, url, true, true); - final HttpResponse httpResponse = Network.request(absoluteURL, null, false, file); + final HttpResponse httpResponse = Network.request(absoluteURL, null, file); if (httpResponse != null) { final int statusCode = httpResponse.getStatusLine().getStatusCode(); if (statusCode == 200) { |
