Wrong Content-Range for zero size object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When I submit request to zero-size object with Range header, I am getting wrong Content-Length and Content-Range.

See "Content-Range: bytes 0-5242880/0" and "Content-Length: 5242881" below.

GET http://XXXX/test-vsespb-1/mykey?AWSAccessKeyId=XXX&Expires=1467330825&Signature=XXX
Range: bytes=0-5242880

HTTP/1.1 206 Partial Content
Connection: close
Date: Sun, 19 Jun 2016 10:12:40 GMT
Accept-Ranges: bytes
ETag: "d41d8cd98f00b204e9800998ecf8427e"
Server: Apache/2.4.7 (Ubuntu)
Content-Length: 5242881
Content-Range: bytes 0-5242880/0
Content-Type: binary/octet-stream
Last-Modified: Sun, 19 Jun 2016 09:51:13 GMT
Client-Date: Sun, 19 Jun 2016 10:12:41 GMT
Client-Peer: 31.31.205.50:80
Client-Response-Num: 1
X-Amz-Meta-Md5: d41d8cd98f00b204e9800998ecf8427e
X-Amz-Request-Id: XXX

Without request Range everything is ok:

GET http://XXX/test-vsespb-1/mykey?AWSAccessKeyId=XXX&Expires=1467330825&Signature=XXX

HTTP/1.1 200 OK
Connection: close
Date: Sun, 19 Jun 2016 10:18:58 GMT
Accept-Ranges: bytes
ETag: "d41d8cd98f00b204e9800998ecf8427e"
Server: Apache/2.4.7 (Ubuntu)
Content-Length: 0
Content-Type: binary/octet-stream
Last-Modified: Sun, 19 Jun 2016 09:51:13 GMT
Client-Date: Sun, 19 Jun 2016 10:18:58 GMT
Client-Peer: 31.31.205.50:80
Client-Response-Num: 1
X-Amz-Meta-Md5: d41d8cd98f00b204e9800998ecf8427e
X-Amz-Request-Id: XXX

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux