We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b91b3ea commit 6c5ae43Copy full SHA for 6c5ae43
1 file changed
lib/resources.rb
@@ -25,8 +25,8 @@ def headers(status, head = {})
25
head.each do |key, value|
26
case key
27
when :pagination
28
- lines << "X-Next: https://api.github.com/resource?page=2"
29
- lines << "X-Last: https://api.github.com/resource?page=5"
+ lines << 'Link: <https://api.github.com/resource?page=2>; rel="next",'
+ lines << ' <https://api.github.com/resource?page=5>; rel="last"'
30
else lines << "#{key}: #{value}"
31
end
32
0 commit comments