Hi,

I am sending file of 2KB in segments from client to the server, the segment
size is of 1KB. On the client the Range has been set for the representation.
On receipt of the first segment on the server, the Content-Length value of
the header shows up as 2048 instead it should be 1024.

The reverse case works fine i.e sending the file from the server to the
client. The Content-Length value of the header shows up as 1024, which is
correct. 1024 is the segment size.

I had a look at the restlet code for version 1.1.8, there are some
difference while writing the Content-Length header value for the Request and
Response.

For the Response, the Content-Length value is entity.getAvailableSize()
whereas for the Request, the Content-Length value is entity.getSize().

Does anyone has any idea why there is difference in Content-Length value for
Request and Response?



Regards,
Faiz.

-- 
View this message in context: 
http://n2.nabble.com/Content-Length-value-issue-tp4894512p4894512.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2580454

Reply via email to