Skip to content

Commit

Permalink
Fix layer thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbov committed Jun 26, 2024
1 parent 132fb49 commit 21cf773
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class LayerController {
def img(String id) {
if (layerService.getLayerByName(id)) {
File f = new File(spatialConfig.data.dir + '/public/thumbnail/' + id + '.jpg')
render(file: f, fileName: "${id}.jpg")
render(file: f, fileName: "${id}.jpg", contentType: "image/jpeg")
} else {
response.sendError(404, "$id not found")
}
Expand Down

0 comments on commit 21cf773

Please sign in to comment.