-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
While running some requests through got using http2-wrapper I stumbled upon the following error when requesting websites that support SSL but do not seem to support HTTP/2. Edit: I believe it might be related to redirects.
Protocol "https:" not supported. Expected "http:"
The culprit seems to be this line:
Line 220 in f1a1776
return delayAsyncDestroy(http.request(options, callback)); |
Changing it to
return delayAsyncDestroy((isHttps ? https : http).request(options, callback));
fixed the issue for me.
Have someone else been affected by this error ?
Is it the correct fix ?
Metadata
Metadata
Assignees
Labels
No labels