Explorar el Código

Add a status string for unknown status numbers

Guillaume Ayoub hace 14 años
padre
commit
753ade5efc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      radicale/__init__.py

+ 1 - 1
radicale/__init__.py

@@ -242,7 +242,7 @@ class Application(object):
             headers["Content-Length"] = str(len(answer))
 
         # Start response
-        status = "%i %s" % (status, client.responses.get(status, ""))
+        status = "%i %s" % (status, client.responses.get(status, "Unknown"))
         start_response(status, list(headers.items()))
 
         # Return response content