feat: init woodpecker #1

Open
realaravinth wants to merge 9 commits from init-woodpecker into master
Showing only changes of commit c868552e41 - Show all commits

View file

@ -70,7 +70,7 @@ class HTMLClient:
def get_csrf_token(self, url: str) -> str:
resp = self.session.get(url, allow_redirects=False)
if resp.status_code != 200 and resp.status_code != 302:
if resp.status_code != 200 and resp.status_code != 302 and resp.status_code != 303:
print(resp.status_code, resp.text)
raise Exception(f"Can't get csrf token: {resp.status_code}")
csrf = self.__get_csrf_token(resp.text)