Skip to content
This repository was archived by the owner on Nov 5, 2026. It is now read-only.

Modernize codebase and more sensible TLS defaults

Pre-release
Pre-release

Choose a tag to compare

@Manfred Manfred released this 30 Oct 11:16
· 3 commits to main since this release
cc8019c
  • Removes support/cacert.pem and no longer sets their own CA file for the HTTP request.
  • Reversed tls_verify: and verify_ssl: options to be true by default instead of false.

If you're actually using Nap in production code, you probably should stop at this point. Read the code and copy the 12 lines of net/http you need into your own code.

To keep most of the current behavior you can change the options to disable tls_verify, comme ça:

response = REST.get(
  'https://example.com',
  {},
  { tls_verify: false }
)