[jcifs] Re: jcifs bugfix - HTTP 1.0 keep-alive (tomcat)

Michael B Allen mba2000 at ioplex.com
Thu Nov 25 19:37:21 GMT 2004


Thx. I'll test this in my env and include it in the next release.

johan at bluenine.se said:
> Michael,
> Just a small fix you might want to add in
> http://jcifs.samba.org/src/src/jcifs/http/NtlmSsp.java
>
> changing the end from
>         resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
>         resp.flushBuffer();
>         return null;
> to
>         resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
>         resp.setContentLength(0);
>         resp.flushBuffer();
>         return null;
>
> will make jcifs to work with HTTP 1.0 keep-alive connections in Tomcat
> (5.5.4).
> Tomcat will close connections that have no content-length set.
>
> Regards,
> Johan


More information about the jcifs mailing list