Skip to content

Commit

Permalink
(refs gitbucket#20)Ignore response.setCharacterEncoding().
Browse files Browse the repository at this point in the history
  • Loading branch information
takezoe committed Jul 8, 2013
1 parent daa5402 commit 777142b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/scala/servlet/BasicAuthenticationFilter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ class BasicAuthenticationFilter extends Filter with RepositoryService with Accou
val response = res.asInstanceOf[HttpServletResponse]

val wrappedResponse = new HttpServletResponseWrapper(response){
override def setContentType(contentType: String) = {
setCharacterEncoding(null)
setHeader("Content-Type", contentType)
}
override def setCharacterEncoding(encoding: String) = {}
}

try {
Expand Down

0 comments on commit 777142b

Please sign in to comment.