Added setting the app user agent.

This commit is contained in:
Erik C. Thauvin 2019-09-24 18:52:44 -07:00
parent 9d784dfe96
commit 32fd9c3c57

View file

@ -16,6 +16,8 @@ class AkismetServlet : HttpServlet() {
public override fun service(request: HttpServletRequest, response: HttpServletResponse) { public override fun service(request: HttpServletRequest, response: HttpServletResponse) {
val id = request.getParameter("id") val id = request.getParameter("id")
akismet.appUserAgent = request.servletContext.serverInfo
val comment = AkismetComment(request) val comment = AkismetComment(request)
with(comment) { with(comment) {
permalink = "${akismet.blog}/comment/$id" permalink = "${akismet.blog}/comment/$id"