I've made a https request to my api and drf pagiantion result next url contains http instead of https
<p>I've a api which uses drf pagination , on hitting a https request the next url  part of my result contains http instead of https. How do I fix this?</p>

<p>My Pagination settings:</p>

<pre><code>class StandardResultsSetPagination(PageNumberPagination):
    page_size = 10
    page_size_query_param = 'page_size'
    max_page_size = 1000
</code></pre>

<p>I want it to work in such a way that if someone makes a http request it should return the next url containing http and if made https, next should have https.</p>

<p>Thank you,let me know if you guys need anything else to help me.</p>