Skip to content

Commit

Permalink
Revert "Fix captcha cache control bug" (#2335)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Jan 19, 2024
1 parent d6ce6a1 commit f629537
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/shared/components/home/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,9 @@ export class Signup extends Component<any, State> {

async fetchCaptcha() {
this.setState({ captchaRes: LOADING_REQUEST });
HttpService.client.setHeaders({
"Cache-Control": "private, no-cache",
});
this.setState({
captchaRes: await HttpService.client.getCaptcha(),
});
HttpService.client.setHeaders({});

this.setState(s => {
if (s.captchaRes.state === "success") {
Expand Down

0 comments on commit f629537

Please sign in to comment.