Skip to content

Commit

Permalink
fix #155
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo Manganiello committed Aug 4, 2020
1 parent 3932ed9 commit e893d81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# [1.1.1](https://github.com/jhipster/generator-jhipster-nodejs/tree/v1.1.1)

- Error when fetch list of entities from react client [issue #155](https://github.com/jhipster/generator-jhipster-nodejs/issues/155)
- double stitch port on app.yml [issue #153](https://github.com/jhipster/generator-jhipster-nodejs/issues/153)

# [1.1.0](https://github.com/jhipster/generator-jhipster-nodejs/tree/v1.1.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export class HeaderUtil {
}
links.push(this.prepareLink(url, page.total - 1, pageSize, 'last'));
links.push(this.prepareLink(url, 0, pageSize, 'first'));
res.set('Link', links.join('%2C'));
res.set('Link', links.join(','));
}

private static prepareLink(url, pageNumber, pageSize, relType): any {
url = new URL('http://localhost' + url);
url.searchParams.set('page', pageNumber);
url.searchParams.set('size', pageSize);
url = url.toString().replace('http://localhost', '');
return `<${url}>%3B rel="${relType}"`;
return `<${url}>; rel="${relType}"`;
}
}

0 comments on commit e893d81

Please sign in to comment.