mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 03:11:25 +00:00
Revert "Fix captcha cache control bug" (#2335)
This commit is contained in:
parent
d6ce6a1afd
commit
f62953797c
1 changed files with 0 additions and 4 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue