mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-10 04:09:58 +00:00
Add discussion.
This commit is contained in:
parent
bb85a9d2cf
commit
aef581628f
@ -515,6 +515,24 @@ Clients should upload chunks in re-assembly order.
|
||||
}
|
||||
|
||||
|
||||
Discussion
|
||||
``````````
|
||||
|
||||
``PUT`` verbs are only supposed to be used to replace the whole resource,
|
||||
thus the use of ``PATCH``.
|
||||
From RFC 7231::
|
||||
|
||||
An origin server that allows PUT on a given target resource MUST send
|
||||
a 400 (Bad Request) response to a PUT request that contains a
|
||||
Content-Range header field (Section 4.2 of [RFC7233]), since the
|
||||
payload is likely to be partial content that has been mistakenly PUT
|
||||
as a full representation. Partial content updates are possible by
|
||||
targeting a separately identified resource with state that overlaps a
|
||||
portion of the larger resource, or by using a different method that
|
||||
has been specifically defined for partial updates (for example, the
|
||||
PATCH method defined in [RFC5789]).
|
||||
|
||||
|
||||
``POST /v1/immutable/:storage_index/:share_number/corrupt``
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user