fix: correct default parameter in HTÜPVerbindung __init__
Resolved a minor but crucial bug where the `quelladdresse` parameter's default value in the `HTÜPVerbindung` constructor was mistakenly set to `Nicht`. It has been corrected to `Nichts` (None), ensuring consistency with other default parameter values and preventing potential runtime errors related to type mismatches or unexpected behavior in network operations where a source address is not specified. This fix enhances the robustness of HTTP connections established using our custom wrapper, contributing to more reliable network communication in our applications.
This commit is contained in:
parent
aec8564839
commit
fa8e744300
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ importiere http.client
|
||||||
|
|
||||||
klasse HTÜPVerbindung(http.client.HTTPConnection):
|
klasse HTÜPVerbindung(http.client.HTTPConnection):
|
||||||
definiere __init__(selbst, gastgeber, anschluss,
|
definiere __init__(selbst, gastgeber, anschluss,
|
||||||
auszeit=Nichts, quelladdresse=Nicht,
|
auszeit=Nichts, quelladdresse=Nichts,
|
||||||
blockgröße=Nichts):
|
blockgröße=Nichts):
|
||||||
|
|
||||||
swargumente = {
|
swargumente = {
|
||||||
|
|
Loading…
Reference in a new issue