Skip to content

Commit

Permalink
make it https?
Browse files Browse the repository at this point in the history
  • Loading branch information
shelajev committed Nov 11, 2024
1 parent 1ed1d47 commit 91606a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/atomicjar/todos/entity/Todo.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public void setOrder(Integer order) {
}

public String getUrl() {
return ServletUriComponentsBuilder.fromCurrentContextPath().toUriString() + "/todos/" + this.getId();
String url = ServletUriComponentsBuilder.fromCurrentContextPath().toUriString() + "/todos/" + this.getId();
return url.replaceFirst("http:", "https:"); //
}
}

0 comments on commit 91606a9

Please sign in to comment.