#1927 net.http client error when given sslctx

Reporter Zash
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Milestone-0.13
  • Priority-Medium
  • Type-Defect
  • Status-Accepted
  1. Zash on

    What steps will reproduce the problem? 1. In the shell: `>require"prosody.net.http".request("https://prosody.im",{sslctx={mode="client"}})` What is the expected output? a http response What do you see instead? error Top-level error, please report: ./net/server_epoll.lua:787: attempt to call a nil value (method 'wrap') 17:55:35 general error stack traceback: ./net/server_epoll.lua:787: in method 'onwritable' ./net/server_epoll.lua:1231: in function 'prosody.net.server_epoll.loop' [C]: in function 'prosody.util.xpcall.xpcall' ./prosody:88: in local 'loop' ./prosody:93: in main chunk [C]: in ? What version of the product are you using? On what operating system? Seen on trunk 488483e1d915, affects 13.0.1 Please provide any additional information below. This happens because net.server now takes a tls context builder instead of a table of settings

New comment

Not published. Used for spam prevention and optional update notifications.