You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when run from the command line you can change the port and the encoding type. However, the variables are set as globals within the file instead of as class arguments. Given the HTTPServer takes a class as an argument and not an instance, I am not entirely certain how to modify the code to paramaterize the class in a way that would still make it usable with the BaseHTTPServer. The end result of this is that you are unable to modify the port and encoding used if you import the class. I am not normally a Python dev so I am not sure of an appropriate response to this issue.
The text was updated successfully, but these errors were encountered:
Currently when run from the command line you can change the port and the encoding type. However, the variables are set as globals within the file instead of as class arguments. Given the HTTPServer takes a class as an argument and not an instance, I am not entirely certain how to modify the code to paramaterize the class in a way that would still make it usable with the BaseHTTPServer. The end result of this is that you are unable to modify the port and encoding used if you import the class. I am not normally a Python dev so I am not sure of an appropriate response to this issue.
The text was updated successfully, but these errors were encountered: