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
[Feature] Add rejectUnauthorized option to BdApi.Net.fetch #1690
Comments
I see in that changelog that:
But the problem with Any updates on how to do this? |
Can you point to the docs where a separate Agent is needed? |
I was talking about the example code I shown, for that ( Or at least that is how people tell you to do it |
Looks like node-fetch chose not to add it specifically, whereas we could node-fetch/node-fetch#15 Also it appears that Agent does indeed have a So we could allow passing agent options (not a whole agent instance due to ipc) or allow that specific http request option ( |
At the moment the normal So just keep it in the main object. I only said it about with the agent because that is how the most look alike package did it. But I think it is a waste of memory to put it in an agent object.... so just put it in the main one! |
Before Requesting
Describe the feature you'd like!
I would like to see an option like the
rejectUnauthorized
option fromhttps
module in theBdApi.Net.fetch
.This would allow request to websites with an expired SSL cert and websites with self signed certs as well.
The
node-fetch
package, which is theNet.fetch
similar to (as mentioned on the wiki), actually has it in anagent
property of theoptions
.Note: This is not in the
fetch
from the browser...Anything else?
I have tried the
require('request').post()
which does have the option and does allow the expired/self signed cert.But as we know:
[BetterDiscord] [Remote~Require] The "request" module is marked as deprecated. Use BdApi.Net.fetch instead.
So that one isn't going to last very long
The text was updated successfully, but these errors were encountered: