begriffs / clean_pagination

API pagination the way RFC7233 intended it
MIT License
33 stars 3 forks source link

Prevent empty `Link` headers #4

Closed prognostikos closed 9 years ago

prognostikos commented 9 years ago

Currently the response headers will include Link: no matter what - even if there are no links. This patch only sets the header if there are links to include.

begriffs commented 9 years ago

That you, good catch -- and even a test to go with it.