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

SSL Connection Error / Issues with PR 12 #13

Closed
shofetim opened this issue Aug 21, 2023 · 2 comments
Closed

SSL Connection Error / Issues with PR 12 #13

shofetim opened this issue Aug 21, 2023 · 2 comments

Comments

@shofetim
Copy link

Hello,

Prior to #12 this code worked:

(import http)
(pp (http/get "https://example.com"))

Post PR #12 it instead errors with "SSL Connection Error"

I believe that this (from #12)

Janet janet_port = janet_table_get(options, janet_ckeywordv("port"));
  long port = 80;

  if (janet_checktype(janet_port, JANET_NUMBER)) {
    port = (long)janet_unwrap_integer(janet_port);
  }

was intended to supply a default port (80) if no port was specified, which it does, but in so doing it makes port a required option for all non-http requests.

Prior to #12 we could already specify a port, like so:

(import http)
(pp (http/get "http://localhost:8080"))

Which to me feels like the more natural place to do so.

Could we return to curl determining the default port if not specified?

@swlkr
Copy link
Contributor

swlkr commented Sep 11, 2023

Oh my gosh, I didn't even realize this, yeah I'll roll it back

@swlkr
Copy link
Contributor

swlkr commented Sep 11, 2023

Closed by 9c93d46

@swlkr swlkr closed this as completed Sep 11, 2023
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

2 participants