소스 검색

Add a status string for unknown status numbers

Guillaume Ayoub 14 년 전
부모
커밋
753ade5efc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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