WordPress.org

Forums

WP REST API (WP API)
Link Header duplicate ? (2 posts)

  1. psm101
    Member
    Posted 1 year ago #

    I was getting duplicates Link: headers

    Link: Link: </wp-json.php/posts?page=2>; rel="next"

    line 453 class-wp-json-server.php
    $header = 'Link: <' . $link . '>; rel="' . $rel . '"';

    public function link_header( $rel, $link, $other = array() ) {
    $header = '<' . $link . '>; rel="' . $rel . '"';

    Link: </wp-json.php/posts?page=2>; rel="next"

    http://wordpress.org/plugins/json-rest-api/

  2. Ryan McCue
    Member
    Plugin Author

    Posted 1 year ago #

    Confirmed and filed, thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP REST API (WP API)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic