Skip to content

Commit 27f513a

Browse files
committed
ST5AS-107 Omit empty Link header
1 parent 105a956 commit 27f513a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/ElementController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public Result getElementsByProjectIdCommitId(UUID projectId, UUID commitId, Http
125125
toCursor(elements.get(0).getIdentifier()),
126126
pageSize));
127127
}
128-
linkHeaderValue = linkHeaderValueBuilder.toString();
128+
linkHeaderValue = linkHeaderValueBuilder.length() > 0 ? linkHeaderValueBuilder.toString() : null;
129129
}
130130
else {
131131
linkHeaderValue = null;

0 commit comments

Comments
 (0)