GitHub: Add a name for the index and change the default response. Closes GH-35.
parent
3fa43d5a02
commit
2315ab4c77
|
@ -60,6 +60,10 @@ except:
|
|||
#####################
|
||||
|
||||
class GithubCallback(httpserver.SupyHTTPServerCallback):
|
||||
name = "GitHub announce callback"
|
||||
defaultResponse = _("""
|
||||
You shouldn't be there, this subfolder is not for you. Go back to the
|
||||
index and try out other plugins (if any).""")
|
||||
def doPost(self, handler, path, form):
|
||||
if not handler.address_string().endswith('.rs.github.com'):
|
||||
log.warning("""'%s' tryed to act as a web hook for Github,
|
||||
|
|
Loading…
Reference in New Issue