Add have_http_link_header
matcher and set header values as strings (#31010)
This commit is contained in:
parent
09017dd8f0
commit
7efe0bde9d
10 changed files with 54 additions and 39 deletions
|
@ -56,7 +56,9 @@ class StatusesController < ApplicationController
|
|||
end
|
||||
|
||||
def set_link_headers
|
||||
response.headers['Link'] = LinkHeader.new([[ActivityPub::TagManager.instance.uri_for(@status), [%w(rel alternate), %w(type application/activity+json)]]])
|
||||
response.headers['Link'] = LinkHeader.new(
|
||||
[[ActivityPub::TagManager.instance.uri_for(@status), [%w(rel alternate), %w(type application/activity+json)]]]
|
||||
).to_s
|
||||
end
|
||||
|
||||
def set_status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue