mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 07:36:37 +00:00
Revert "Fix captcha cache control bug" (#2335)
This commit is contained in:
parent
d6ce6a1afd
commit
f62953797c
|
@ -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