Skip to content

Commit 9ad1333

Browse files
committed
Adjust to spec
1 parent 9aa9541 commit 9ad1333

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fasp_data_sharing/app/controllers/fasp_data_sharing/fasp/data_sharing/v0/announcements_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def create
77
event.process
88

99
respond_to do |format|
10-
format.json { head :ok }
10+
format.json { head :no_content }
1111
end
1212
end
1313

fasp_data_sharing/app/models/fasp_data_sharing/activity_pub_object.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class FaspDataSharing::ActivityPubObject
88

99
def fetch
1010
response = message_signature_request
11-
response = signature_request if response.status == 401
11+
response = signature_request if response.status.in?([401, 403])
1212

1313
response.raise_for_status
1414
JSON.parse(response.body.to_s) # TODO: simplify with response.json after next httpx release

0 commit comments

Comments
 (0)