Skip to content

Commit

Permalink
Merge pull request #13760 from zhangsw/fix-rgw-torrent-uri
Browse files Browse the repository at this point in the history
rgw: get torrent request's parameter is not the same as amazon s3.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
  • Loading branch information
cbodley committed Mar 9, 2017
2 parents 2bb96e0 + a0aa859 commit 5877780
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions PendingReleaseNotes
Expand Up @@ -88,3 +88,7 @@
* The rados copy-get-classic operation has been removed since it has not been
used by the OSD since before hammer. It is unlikely any librados user is
using this operation explicitly since there is also the more modern copy-get.

* The RGW api for getting object torrent has changed its params from 'get_torrent'
to 'torrent' so that it can be compatible with Amazon S3. Now the request for
object torrent is like 'GET /ObjectName?torrent'.
2 changes: 1 addition & 1 deletion src/rgw/rgw_torrent.h
Expand Up @@ -29,7 +29,7 @@ struct req_state;
#define PIECE_LENGTH "piece length"
#define PIECES "pieces"
#define INFO_PIECES "info"
#define GET_TORRENT "get_torrent"
#define GET_TORRENT "torrent"

class TorrentBencode
{
Expand Down

0 comments on commit 5877780

Please sign in to comment.