Skip to content

Commit 6c5ae43

Browse files
committed
Fix link headers
1 parent b91b3ea commit 6c5ae43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/resources.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def headers(status, head = {})
2525
head.each do |key, value|
2626
case key
2727
when :pagination
28-
lines << "X-Next: https://api.github.com/resource?page=2"
29-
lines << "X-Last: https://api.github.com/resource?page=5"
28+
lines << 'Link: <https://api.github.com/resource?page=2>; rel="next",'
29+
lines << ' <https://api.github.com/resource?page=5>; rel="last"'
3030
else lines << "#{key}: #{value}"
3131
end
3232
end

0 commit comments

Comments
 (0)