Skip to content

Commit

Permalink
[#141] Add well-known attribute for content type
Browse files Browse the repository at this point in the history
Neo3 Oracles need a way to check object's MIME content type, as
described in neo-project/neo-modules#555.

The proposal was to add Content-Type as a well-known attribute.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
  • Loading branch information
Stanislav Bogatyrev authored and realloc committed Mar 15, 2021
1 parent 69f09c8 commit e33f784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions object/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ message Header {
// File name to be associated with the object on saving
// * Timestamp \
// User-defined local time of object creation in Unix Timestamp format
// * Content-Type \
// MIME Content Type of object's payload
//
// For detailed description of each well-known attribute please see the
// corresponding section in NeoFS Technical specification.
Expand Down
2 changes: 2 additions & 0 deletions proto-docs/object.md
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,8 @@ And some well-known attributes used by applications only:
File name to be associated with the object on saving
* Timestamp \
User-defined local time of object creation in Unix Timestamp format
* Content-Type \
MIME Content Type of object's payload

For detailed description of each well-known attribute please see the
corresponding section in NeoFS Technical specification.
Expand Down

0 comments on commit e33f784

Please sign in to comment.