Skip to content

Commit

Permalink
Fix typo in parameter name (#241)
Browse files Browse the repository at this point in the history
proxyResonse -> proxyResponse
  • Loading branch information
lxhcaicai authored Aug 6, 2023
1 parent 36c6487 commit b953eeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/mitre/dsmiley/httpproxy/ProxyServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit b953eeb

Please sign in to comment.