Transmit header before creating user list

This commit is contained in:
Michael 2022-12-12 02:43:32 +00:00
parent cfd09663e7
commit a2f386cd2f
2 changed files with 4 additions and 4 deletions

View file

@ -110,10 +110,10 @@ class Lists extends ContactEndpoint
$ids = array_reverse($ids);
}
$return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities);
self::setLinkHeader();
$return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities);
$this->response->exit('lists', ['lists' => $return]);
}
}

View file

@ -110,10 +110,10 @@ class Lists extends ContactEndpoint
$ids = array_reverse($ids);
}
$return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities);
self::setLinkHeader();
$return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities);
$this->response->exit('lists', ['lists' => $return]);
}
}