0
0
Fork 0

Add have_http_link_header matcher and set header values as strings (#31010)

This commit is contained in:
Matt Jankowski 2024-09-05 16:05:38 -04:00 committed by GitHub
parent 09017dd8f0
commit 7efe0bde9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 54 additions and 39 deletions

View file

@ -20,7 +20,7 @@ module AccountControllerConcern
webfinger_account_link,
actor_url_link,
]
)
).to_s
end
def webfinger_account_link

View file

@ -19,7 +19,7 @@ module Api::Pagination
links = []
links << [next_path, [%w(rel next)]] if next_path
links << [prev_path, [%w(rel prev)]] if prev_path
response.headers['Link'] = LinkHeader.new(links) unless links.empty?
response.headers['Link'] = LinkHeader.new(links).to_s unless links.empty?
end
def require_valid_pagination_options!