mirror of
https://github.com/corda/corda.git
synced 2025-02-02 09:18:13 +00:00
Removed pointless conversion between timeunit and int.
This commit is contained in:
parent
f167708af5
commit
46b63fd967
@ -122,7 +122,7 @@ class InterestRateSwapAPI(val services: ServiceHub) {
|
||||
val resource = javaClass.getResourceAsStream("irswebdemo/" + resourcePath)
|
||||
if(resource != null) {
|
||||
val cacheControl = CacheControl();
|
||||
cacheControl.maxAge = TimeUnit.SECONDS.toSeconds(0).toInt()
|
||||
cacheControl.maxAge = 0
|
||||
logger.info("200: serving ${filepath}")
|
||||
return Response.ok(resource).cacheControl(cacheControl).build()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user