Skip to content

Commit

Permalink
[BUGFIX] Servlet init fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
maximesinclair committed Mar 5, 2014
1 parent 712c812 commit 0318f48
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.util.regex.Pattern;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
Expand Down Expand Up @@ -124,8 +123,8 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
return;
}

public void init(ServletConfig config) throws ServletException {
config.getServletContext().setAttribute("cfg", Configuration.get());
public void init() throws ServletException {
getServletConfig().getServletContext().setAttribute("cfg", Configuration.get());
}

private Transcoder getTranscoder() {
Expand Down

0 comments on commit 0318f48

Please sign in to comment.