diff --git a/src/core/studentClient.ts b/src/core/studentClient.ts index 9e61c43..7f2be42 100644 --- a/src/core/studentClient.ts +++ b/src/core/studentClient.ts @@ -111,9 +111,10 @@ export class StudentClient extends BaseClient { ): Promise { const data = await this.makeAuthedRequest(`${this.API_BASE}/getcode`, { method: "POST", - body: JSON.stringify({ - date: options.dateOfBirth, - }), + body: `date=${options.dateOfBirth}`, + headers: { + "content-type": "application/x-www-form-urlencoded", + }, }); return data; }