Set Content-Type for ActivityPub request to correct value. #315

Merged
KokaKiwi merged 1 commit from ap-request-content-type into master 2018-11-23 12:18:33 +00:00
KokaKiwi commented 2018-11-23 01:10:31 +00:00 (Migrated from github.com)

As defined in section 7 of the ActivityPub specification, POST requests must have the Content-Type: application/ld+json; profile="https://www.w3.org/ns/activitystreams" header

Also it allows implementations (like Pleroma) actually verifying content-types to correctly handle requests

As defined in [section 7 of the ActivityPub specification](https://www.w3.org/TR/activitypub/#server-to-server-interactions), `POST` requests must have the `Content-Type: application/ld+json; profile="https://www.w3.org/ns/activitystreams"` header Also it allows implementations (like Pleroma) actually verifying content-types to correctly handle requests
codecov[bot] commented 2018-11-23 01:29:20 +00:00 (Migrated from github.com)

Codecov Report

Merging #315 into master will decrease coverage by 0.06%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #315      +/-   ##
=========================================
- Coverage    5.13%   5.07%   -0.07%     
=========================================
  Files          55      55              
  Lines        3719    3763      +44     
=========================================
  Hits          191     191              
- Misses       3528    3572      +44
Impacted Files Coverage Δ
plume-common/src/activity_pub/mod.rs 0% <0%> (ø) ⬆️
plume-common/src/activity_pub/request.rs 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 00a205a...7c22a1f. Read the comment docs.

# [Codecov](https://codecov.io/gh/Plume-org/Plume/pull/315?src=pr&el=h1) Report > Merging [#315](https://codecov.io/gh/Plume-org/Plume/pull/315?src=pr&el=desc) into [master](https://codecov.io/gh/Plume-org/Plume/commit/00a205a882aa0229fe33f358a7ba1b24171899d0?src=pr&el=desc) will **decrease** coverage by `0.06%`. > The diff coverage is `0%`. [![Impacted file tree graph](https://codecov.io/gh/Plume-org/Plume/pull/315/graphs/tree.svg?width=650&token=sHtxmDuZ06&height=150&src=pr)](https://codecov.io/gh/Plume-org/Plume/pull/315?src=pr&el=tree) ```diff @@ Coverage Diff @@ ## master #315 +/- ## ========================================= - Coverage 5.13% 5.07% -0.07% ========================================= Files 55 55 Lines 3719 3763 +44 ========================================= Hits 191 191 - Misses 3528 3572 +44 ``` | [Impacted Files](https://codecov.io/gh/Plume-org/Plume/pull/315?src=pr&el=tree) | Coverage Δ | | |---|---|---| | [plume-common/src/activity\_pub/mod.rs](https://codecov.io/gh/Plume-org/Plume/pull/315/diff?src=pr&el=tree#diff-cGx1bWUtY29tbW9uL3NyYy9hY3Rpdml0eV9wdWIvbW9kLnJz) | `0% <0%> (ø)` | :arrow_up: | | [plume-common/src/activity\_pub/request.rs](https://codecov.io/gh/Plume-org/Plume/pull/315/diff?src=pr&el=tree#diff-cGx1bWUtY29tbW9uL3NyYy9hY3Rpdml0eV9wdWIvcmVxdWVzdC5ycw==) | `0% <0%> (ø)` | :arrow_up: | ------ [Continue to review full report at Codecov](https://codecov.io/gh/Plume-org/Plume/pull/315?src=pr&el=continue). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta) > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://codecov.io/gh/Plume-org/Plume/pull/315?src=pr&el=footer). Last update [00a205a...7c22a1f](https://codecov.io/gh/Plume-org/Plume/pull/315?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
trinity-1686a approved these changes 2018-11-23 08:23:47 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#315
No description provided.