Ignore:
Timestamp:
2020-01-20T23:18:40+01:00 (4 years ago)
Author:
simon04
Message:

HttpClient: use cache by default

This is in accordance with java.net.URLConnection#getDefaultUseCaches(java.lang.String)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/tools/HttpClientTest.java

    r14191 r15741  
    117117            assertThat(root.getJsonObject("args").getString("foo"), is("bar"));
    118118            assertThat(root.getString("url"), is("https://httpbin.org/get?foo=bar"));
     119            assertThat(root.getJsonObject("headers").get("Cache-Control"), nullValue());
     120            assertThat(root.getJsonObject("headers").get("Pragma"), nullValue());
    119121        }
    120122    }
Note: See TracChangeset for help on using the changeset viewer.