Made sure the image served for HTML5 client is in SVG format.

This commit is contained in:
Maxim Khlobystov 2015-07-07 12:19:05 -04:00
parent cf1c6390be
commit ceb3a3911c
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ class BigBlueButtonInGW(bbbGW: BigBlueButtonGateway, presUtil: PreuploadedPresen
val swfUri = presBaseUrl + "/slide/" + i
val txtUri = presBaseUrl + "/textfiles/" + i
val pngUri = presBaseUrl + "/svg/" + i
val pngUri = presBaseUrl + "/png/" + i
val p = new Page(id=id, num=num, thumbUri=thumbnail, swfUri=swfUri,
txtUri=txtUri, pngUri=pngUri,

View File

@ -157,7 +157,7 @@ class PresentationController {
if (pres.exists()) {
def bytes = pres.readBytes()
response.addHeader("Cache-Control", "no-cache")
response.contentType = 'image/svg'
response.contentType = 'image/svg+xml'
response.outputStream << bytes;
}
} catch (IOException e) {