Kaynağa Gözat

Add a status string for unknown status numbers

Guillaume Ayoub 14 yıl önce
ebeveyn
işleme
753ade5efc
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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