mirror of
https://github.com/corda/corda.git
synced 2025-02-08 20:10:22 +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)
|
val resource = javaClass.getResourceAsStream("irswebdemo/" + resourcePath)
|
||||||
if(resource != null) {
|
if(resource != null) {
|
||||||
val cacheControl = CacheControl();
|
val cacheControl = CacheControl();
|
||||||
cacheControl.maxAge = TimeUnit.SECONDS.toSeconds(0).toInt()
|
cacheControl.maxAge = 0
|
||||||
logger.info("200: serving ${filepath}")
|
logger.info("200: serving ${filepath}")
|
||||||
return Response.ok(resource).cacheControl(cacheControl).build()
|
return Response.ok(resource).cacheControl(cacheControl).build()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user