users@jersey.java.net

RE: [Jersey] Chunked PUT without content-length

From: Markus Karg <markus.karg_at_gmx.net>
Date: Wed, 30 Dec 2009 21:22:18 +0100

Great, this means that Mac OS X 10.5 should run with "WebDAV Support for
JAX-RS" (as EADS already told us), while with Milton it needs a patch (as
Milton told us) ;-)

 

From: Paul.Sandoz_at_Sun.COM [mailto:Paul.Sandoz_at_Sun.COM]
Sent: Mittwoch, 30. Dezember 2009 20:54
To: users_at_jersey.dev.java.net
Subject: Re: [Jersey] Chunked PUT without content-length

 

 

On Dec 30, 2009, at 7:40 PM, Markus Karg wrote:





Mac OS X 10.5 is sending chunked PUTs without content-length header, which
is valid http/1.1. Is Jersey able to handle this? How will it detect the end
of the entity?

 

Yes, because it is managed by the Servlet (or in general the HTTP)
implementation.

 

The end of the entity is detected when the end of the stream has been
reached of the InputStream (return of -1 from an InputStream.read methods).

 

Paul.