Skip to content

Commit

Permalink
1.0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Nov 4, 2023
1 parent 65a3337 commit fdc32b2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ abstract class SessionBase(val sessionId: String) : SessionInterface {
val spinner1 = if (showSpinner) """<div>$spinner</div>""" else ""
return this@SessionBase.send("""$responseContents$spinner1""")
}

override fun sessionID(): String {
return sessionId
}

override fun divID(): String {
return operationID
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,7 @@ abstract class SkyenetMacroChat(

abstract class SessionDiv {
abstract fun append(htmlToAppend: String, showSpinner: Boolean) : Unit
abstract fun sessionID(): String
abstract fun divID(): String
}

Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ abstract class SkyenetSessionServerBase(
"text/plain"
}
resp.status = HttpServletResponse.SC_OK
resp.writer.write(file.readText())
file.inputStream().use { inputStream ->
resp.outputStream.use { outputStream ->
inputStream.copyTo(outputStream)
}
}
} else {
resp.contentType = "text/html"
resp.status = HttpServletResponse.SC_OK
Expand Down

0 comments on commit fdc32b2

Please sign in to comment.