CoSwitched / rcsjta

Automatically exported from code.google.com/p/rcsjta
0 stars 0 forks source link

bytes-unit element is missing in Content-Range header of HTTP FT resume POST #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
according to RFC 2616, section 14.16 the Content-Range header must contain an 
element bytes-unit

This is missing in HttpUploadManager.sendPutForResumingUpload():
change 
<<<connection.setRequestProperty("Content-Range", (resumeInfo.getEnd()+1) + "-" 
+ (content.getSize()-1) + "/"
                + content.getSize());
to
>>>connection.setRequestProperty("Content-Range", "bytes " + 
(resumeInfo.getEnd()+1) + "-" + (content.getSize()-1) + "/"
                + content.getSize());

Original issue reported on code.google.com by andreas-...@telekom.de on 26 Jun 2014 at 1:44

GoogleCodeExporter commented 9 years ago
the "bytes" keyword is actually missing.

Original comment by lemordan...@gmail.com on 1 Jul 2014 at 10:14

GoogleCodeExporter commented 9 years ago
Pushed to branch issue-049

Original comment by andreas-...@telekom.de on 3 Jul 2014 at 8:25