-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
Description
Question
Hi,
I'm getting this error when try to upload a file to Cloudflare servers:
java.io.IOException: Server returned HTTP response code: 400
It seems that the root cause is the following code, at TusUploader.java file
try {
connection.setRequestMethod("PATCH");
// Check whether we are running on a buggy JRE
} catch (java.net.ProtocolException pe) {
connection.setRequestMethod("POST");
connection.setRequestProperty("X-HTTP-Method-Override", "PATCH");
}
Cloudflare does not support the X-HTTP-Method-Override header.
I have found the same error at:
#29
Is there any workaround does not depends on server configuration?
Regards
Marcos
Setup details
Please provide following details, if applicable to your situation:
- Runtime environment: OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
- Used tus-java-client version: v0.4.5
- Used tus server software: cloudflare
Reactions are currently unavailable