Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails because it expects HTTP/1.1 #47

Open
corporategoth opened this issue Feb 28, 2022 · 3 comments
Open

Fails because it expects HTTP/1.1 #47

corporategoth opened this issue Feb 28, 2022 · 3 comments

Comments

@corporategoth
Copy link

So I tried using the sync - and I was getting failures. Logging on and debugging I can now see why.

  1. It expects HTTP/1.1 instead of HTTP/2 (as it will now get)
  2. Even if I change it to HTTP/2, it expects HTTP/2 200 OK, instead of just HTTP/2 200

Once I fix both of these expectations in my code, suddenly my /dropbox_uploader.sh -f /etc/uploader.conf info command works.

@corporategoth
Copy link
Author

The expectations should change, or the --http1.1 argument should be added to the curl commands.

@corporategoth
Copy link
Author

Note - I fixed this easier with the --http1.1 flag to curl. As I noticed the POST still use HTTP/1.1

I did a simple sed -i 's/CURL_PARAMETERS /CURL_PARAMETERS --http1.1 /g' /dropbox_uploader.sh

@corporategoth
Copy link
Author

I noticed that dropbox_uploader.sh has been updated to fix this already - you should pull a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant