diff --git a/src/main/java/org/mitre/dsmiley/httpproxy/ProxyServlet.java b/src/main/java/org/mitre/dsmiley/httpproxy/ProxyServlet.java index a22ace6..41b2983 100755 --- a/src/main/java/org/mitre/dsmiley/httpproxy/ProxyServlet.java +++ b/src/main/java/org/mitre/dsmiley/httpproxy/ProxyServlet.java @@ -403,7 +403,7 @@ protected void service(HttpServletRequest servletRequest, HttpServletResponse se } } - protected void handleRequestException(HttpRequest proxyRequest, HttpResponse proxyResonse, Exception e) throws ServletException, IOException { + protected void handleRequestException(HttpRequest proxyRequest, HttpResponse proxyResponse, Exception e) throws ServletException, IOException { //abort request, according to best practice with HttpClient if (proxyRequest instanceof AbortableHttpRequest) { AbortableHttpRequest abortableHttpRequest = (AbortableHttpRequest) proxyRequest; @@ -413,8 +413,8 @@ protected void handleRequestException(HttpRequest proxyRequest, HttpResponse pro // #close is called. If the sending site does not timeout or keeps sending, // the connection will be kept open indefinitely. Closing the respone // object terminates the stream. - if (proxyResonse instanceof Closeable) { - ((Closeable) proxyResonse).close(); + if (proxyResponse instanceof Closeable) { + ((Closeable) proxyResponse).close(); } if (e instanceof RuntimeException) throw (RuntimeException)e;