tursodatabase / libsql-client-py

Python SDK for libSQL
https://libsql.org/libsql-client-py/
MIT License
44 stars 10 forks source link

Add support for ?tls=0 query parameter #11

Closed honzasp closed 1 year ago

honzasp commented 1 year ago

This parameter can be used to opt out of TLS when using libsql: URL. It is also possible to use it with HTTP and WebSocket URLs, but in this case we just check that it matches the existing scheme (i.e., https://localhost?tls=0 throws an error). We also require every libsql: URL with ?tls=0 to specify an explicit port, because the default port for libsql: URL is 443, which could produce unexpected results.

barbieri commented 1 year ago

@honzasp are you going to do any further work? Or should we merge?

honzasp commented 1 year ago

No, we can merge :) I completely forgot about this PR!