X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Fproto.py;h=a30b8bfc81fcee7bd9ff8a7e66afb5e9d157b88a;hb=8ad65294d99876407b25f4aa779888fb4ca72d9c;hp=4fd26a0cfa5da57d01884010b95e52908a84d402;hpb=c62c64aa0bed60dd640a399b8e530bf51ff90063;p=wrw.git diff --git a/wrw/proto.py b/wrw/proto.py index 4fd26a0..a30b8bf 100644 --- a/wrw/proto.py +++ b/wrw/proto.py @@ -6,6 +6,7 @@ statusinfo = { 403: ("Forbidden", "You are not authorized to request the requested resource."), 404: ("Not Found", "The requested resource was not found."), 405: ("Method Not Allowed", "The request method is not recognized or permitted by the requested resource."), + 429: ("Too Many Requests", "Your client is sending more frequent requests than are accepted."), 500: ("Server Error", "An internal error occurred."), 501: ("Not Implemented", "The requested functionality has not been implemented."), 503: ("Service Unavailable", "Service is being denied at this time."), @@ -106,7 +107,7 @@ def urlq(url): if isinstance(url, str): url = url.encode("utf-8") ret = "" - invalid = b"%;&=#?/\"'" + invalid = b"%;&=+#?/\"'" for c in url: if c in invalid or (c <= 32) or (c >= 128): ret += "%%%02X" % c