Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/lintChanges.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Lint Java Code
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types:
- opened
- ready_for_review
- synchronize
- unlabeled
jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
name: Tests

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types:
- opened
- ready_for_review
- synchronize
- unlabeled
jobs:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/tus/java/client/TusClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class TusClient {
* Version of the tus protocol used by the client. The remote server needs to support this
* version, too.
*/
public static final String TUS_VERSION = "1.0.0";
public static final String TUS_VERSION = TusProtocol.DEFAULT_PROTOCOL_VERSION;

private URL uploadCreationURL;
private Proxy proxy;
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/io/tus/java/client/TusProtocol.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Code generated from Transloadit API2 TUS protocol contracts; DO NOT EDIT.
* If it looks wrong, please report the issue instead of editing this file by hand;
* the source fix belongs in the protocol contract generator so all TUS clients stay in sync.
*/

package io.tus.java.client;

/**
* Generated TUS protocol constants used by the runtime client.
*/
final class TusProtocol {
static final String DEFAULT_PROTOCOL_VERSION = "1.0.0";

private TusProtocol() {
}
}
Loading