Added setting the app user agent.
This commit is contained in:
parent
9d784dfe96
commit
32fd9c3c57
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue