Skip to content

Loading…

Fixes /WP-API/WP-API#30 #56

Merged
merged 1 commit into from

2 participants

@jmusal

Remove extra "Link: " in the headers, from issue #30

@rmccue rmccue was assigned
@rmccue rmccue merged commit a9e8dea into WP-API:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 12, 2013
  1. @jmusal

    Removed extra "Link: " from link headers - issue #30 - WP-API/WP-API#30

    jmusal committed
    … Fixes /WP-API/WP-API#30
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/class-wp-json-server.php
View
2 lib/class-wp-json-server.php
@@ -500,7 +500,7 @@ public function header( $key, $value, $replace = true ) {
* @param array $other Other parameters to send, as an assocative array
*/
public function link_header( $rel, $link, $other = array() ) {
- $header = 'Link: <' . $link . '>; rel="' . $rel . '"';
+ $header = '<' . $link . '>; rel="' . $rel . '"';
foreach ( $other as $key => $value ) {
if ( 'title' == $key )
$value = '"' . $value . '"';
Something went wrong with that request. Please try again.