Skip to content

Commit

Permalink
trasnfertype has default contenttype
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Jul 14, 2021
1 parent fcded65 commit aadd45f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

@JsonDeserialize(builder = TransferType.Builder.class)
public class TransferType {
private String contentType;
private static final String DEFAULT_CONTENT_TYPE = "application/octet-stream";
private String contentType = DEFAULT_CONTENT_TYPE;
private boolean isFinite = true;

public String getContentType() {
Expand All @@ -27,7 +28,7 @@ public boolean isFinite() {

@JsonPOJOBuilder(withPrefix = "")
public static final class Builder {
private String contentType = "application/octet-stream";
private String contentType = DEFAULT_CONTENT_TYPE;
private boolean isFinite = true;

private Builder() {
Expand Down

0 comments on commit aadd45f

Please sign in to comment.