You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/10/25 09:06:20 UTC

[GitHub] [couchdb] janl commented on issue #2244: Couchdb sends more than requested range in attachments

janl commented on issue #2244: Couchdb sends more than requested range in attachments
URL: https://github.com/apache/couchdb/issues/2244#issuecomment-546270858
 
 
   it doesn’t look like I can reproduce this:
   
   ```
   > curl -vX PUT http://a:a@127.0.0.1:15984/a
   *   Trying 127.0.0.1...
   * TCP_NODELAY set
   * Connected to 127.0.0.1 (127.0.0.1) port 15984 (#0)
   * Server auth using Basic with user 'a'
   > PUT /a HTTP/1.1
   > Host: 127.0.0.1:15984
   > Authorization: Basic YTph
   > User-Agent: curl/7.54.0
   > Accept: */*
   > 
   < HTTP/1.1 201 Created
   < Cache-Control: must-revalidate
   < Content-Length: 12
   < Content-Type: application/json
   < Date: Fri, 25 Oct 2019 09:05:44 GMT
   < Location: http://127.0.0.1:15984/a
   < Server: CouchDB/3.0.0-be2364d9c (Erlang OTP/21)
   < X-Couch-Request-ID: de4cfb3575
   < X-CouchDB-Body-Time: 0
   < 
   {"ok":true}
   * Connection #0 to host 127.0.0.1 left intact
   jan@rose (11:05:44) ~ 
   > curl -vX PUT http://127.0.0.1:15984/a/a/a -Hcontent-type:application/octet-stream -d 'abcde'
   *   Trying 127.0.0.1...
   * TCP_NODELAY set
   * Connected to 127.0.0.1 (127.0.0.1) port 15984 (#0)
   > PUT /a/a/a HTTP/1.1
   > Host: 127.0.0.1:15984
   > User-Agent: curl/7.54.0
   > Accept: */*
   > content-type:application/octet-stream
   > Content-Length: 5
   > 
   * upload completely sent off: 5 out of 5 bytes
   < HTTP/1.1 201 Created
   < Cache-Control: must-revalidate
   < Content-Length: 64
   < Content-Type: application/json
   < Date: Fri, 25 Oct 2019 09:05:51 GMT
   < Location: http://127.0.0.1:15984/a/a/a
   < Server: CouchDB/3.0.0-be2364d9c (Erlang OTP/21)
   < X-Couch-Request-ID: ea824e1e65
   < X-CouchDB-Body-Time: 0
   < 
   {"ok":true,"id":"a","rev":"1-3f5a3d76ee90dc21a1bc013c8010446c"}
   * Connection #0 to host 127.0.0.1 left intact
   jan@rose (11:05:52) ~ 
   > curl -v http://127.0.0.1:15984/a/a/a -HRange:bytes=1-2
   *   Trying 127.0.0.1...
   * TCP_NODELAY set
   * Connected to 127.0.0.1 (127.0.0.1) port 15984 (#0)
   > GET /a/a/a HTTP/1.1
   > Host: 127.0.0.1:15984
   > User-Agent: curl/7.54.0
   > Accept: */*
   > Range:bytes=1-2
   > 
   < HTTP/1.1 206 Partial Content
   < Accept-Ranges: bytes
   < Cache-Control: must-revalidate
   < Content-Length: 2
   < Content-Range: bytes 1-2/5
   < Content-Type: application/octet-stream
   < Date: Fri, 25 Oct 2019 09:06:00 GMT
   < ETag: "q1a02StAcTrMWviZhdS3hg=="
   < Server: CouchDB/3.0.0-be2364d9c (Erlang OTP/21)
   < 
   * Connection #0 to host 127.0.0.1 left intact
   bc
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services