forked from TrueCloudLab/distribution
Merge pull request #2338 from stevvooe/api-typo
api: url typo in specification
This commit is contained in:
commit
5cfdfbdce5
3 changed files with 5 additions and 5 deletions
|
@ -676,7 +676,7 @@ the upload will not be considered complete. The format for the final chunk
|
||||||
will be as follows:
|
will be as follows:
|
||||||
|
|
||||||
```
|
```
|
||||||
PUT /v2/<name>/blob/uploads/<uuid>?digest=<digest>
|
PUT /v2/<name>/blobs/uploads/<uuid>?digest=<digest>
|
||||||
Content-Length: <size of chunk>
|
Content-Length: <size of chunk>
|
||||||
Content-Range: <start of range>-<end of range>
|
Content-Range: <start of range>-<end of range>
|
||||||
Content-Type: application/octet-stream
|
Content-Type: application/octet-stream
|
||||||
|
|
|
@ -676,7 +676,7 @@ the upload will not be considered complete. The format for the final chunk
|
||||||
will be as follows:
|
will be as follows:
|
||||||
|
|
||||||
```
|
```
|
||||||
PUT /v2/<name>/blob/uploads/<uuid>?digest=<digest>
|
PUT /v2/<name>/blobs/uploads/<uuid>?digest=<digest>
|
||||||
Content-Length: <size of chunk>
|
Content-Length: <size of chunk>
|
||||||
Content-Range: <start of range>-<end of range>
|
Content-Range: <start of range>-<end of range>
|
||||||
Content-Type: application/octet-stream
|
Content-Type: application/octet-stream
|
||||||
|
|
|
@ -180,8 +180,8 @@ func TestRouterWithPathTraversals(t *testing.T) {
|
||||||
testCases := []routeTestCase{
|
testCases := []routeTestCase{
|
||||||
{
|
{
|
||||||
RouteName: RouteNameBlobUploadChunk,
|
RouteName: RouteNameBlobUploadChunk,
|
||||||
RequestURI: "/v2/foo/../../blob/uploads/D95306FA-FAD3-4E36-8D41-CF1C93EF8286",
|
RequestURI: "/v2/foo/../../blobs/uploads/D95306FA-FAD3-4E36-8D41-CF1C93EF8286",
|
||||||
ExpectedURI: "/blob/uploads/D95306FA-FAD3-4E36-8D41-CF1C93EF8286",
|
ExpectedURI: "/blobs/uploads/D95306FA-FAD3-4E36-8D41-CF1C93EF8286",
|
||||||
StatusCode: http.StatusNotFound,
|
StatusCode: http.StatusNotFound,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -202,7 +202,7 @@ func TestRouterWithBadCharacters(t *testing.T) {
|
||||||
testCases := []routeTestCase{
|
testCases := []routeTestCase{
|
||||||
{
|
{
|
||||||
RouteName: RouteNameBlobUploadChunk,
|
RouteName: RouteNameBlobUploadChunk,
|
||||||
RequestURI: "/v2/foo/blob/uploads/不95306FA-FAD3-4E36-8D41-CF1C93EF8286",
|
RequestURI: "/v2/foo/blobs/uploads/不95306FA-FAD3-4E36-8D41-CF1C93EF8286",
|
||||||
StatusCode: http.StatusNotFound,
|
StatusCode: http.StatusNotFound,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue