
http module bug
lvzhiyuan0925 opened this issue · 2 comments
Minecraft Version
1.20.1
Version
1.113.1
Details
in http module
If your URL contains spaces, the program will throw the URL malformed.
For example: http://127.0.0.1:5000/ai?msg=hello world。
URL malformed is thrown because msg=hello world contains spaces!
无日志。
URLs are not allowed to contain spaces. This error is correctly informing you about this fact. If you have a path in url that contains spaces, it needs to be URL encoded. CC has build in textutils.urlEncode function that will do it for you.
URLs are not allowed to contain spaces. This error is correctly informing you about this fact. If you have a path in url that contains spaces, it needs to be URL encoded. CC has build in textutils.urlEncode function that will do it for you.
Thanks