You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.
The Mutable Resources backend treats multihash has a special data case, when the datalength is set to 0 (it has a special UpdateMultihash method that does it automatically).
However, the api has no way of specifying that an update is a multihash. Thus, upon retrieval, the http server cannot distinguish this also.
In cases where the content is a swarm multihash, it should automatically retrieve the resource the hash points to and serve that to the client instead.
Currently, a raw resource update is made by POSTing data to bzz-resource://somename.eth.
One suggestion could be to have bzz-resource://somename.eth for multihashes, and bzz-resource://somename.eth/raw for others.
GET bzz-resource:// methods should also indicate if the response is raw or multihash, maybe using Content-Type header.
The text was updated successfully, but these errors were encountered:
The Mutable Resources backend treats multihash has a special data case, when the datalength is set to 0 (it has a special
UpdateMultihash
method that does it automatically).However, the api has no way of specifying that an update is a multihash. Thus, upon retrieval, the http server cannot distinguish this also.
In cases where the content is a swarm multihash, it should automatically retrieve the resource the hash points to and serve that to the client instead.
Currently, a raw resource update is made by
POST
ing data tobzz-resource://somename.eth
.One suggestion could be to have
bzz-resource://somename.eth
for multihashes, andbzz-resource://somename.eth/raw
for others.GET bzz-resource://
methods should also indicate if the response is raw or multihash, maybe usingContent-Type
header.The text was updated successfully, but these errors were encountered: