-
Notifications
You must be signed in to change notification settings - Fork 391
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
Switch from http to https #482
base: develop
Are you sure you want to change the base?
Conversation
Have you tested if it actually works? |
The https thing aside, the spelling fix looks very reasonable to me. Could you open a separate PR (only for the 2nd commit)? |
I haven't tested it indeed.
I didn't consider that translate-shell itself would implement enough of
HTTP in awk to be able to connect to these services, I thought that all
the plugins would be calling curl as at least one of them does.
At some point not being able to use a modern HTTP implementation might
become a liability, for example if some of the APIs started to require
HTTPS or HTTP/2 or HTTP/3 then you would have to switch anyway.
Would you be open to switching all the plugins to use curl?
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
I think the best way to implement this is to have an option If Google Translate starts to require HTTPS one day in the future and gawk can't handle it, maybe it's then time to rewrite trans in a more modern language with a decent standard library. (Requiring HTTP/2 or HTTP/3 is a bit too radical at this point, though) |
That sounds like a reasonable way to go, I'll try to take a look at
implementing it over the weekend.
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
Prevents attackers from modifying responses and reading translation data. Suggested-by: opensnitch & check-all-the-things
I've dropped the problematic parts of my patch, please merge the
remaining changes and I will submit a new PR for the --secure feature,
once I have time to work on it.
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
Switch everything from http to https. Also fix a typo.