small oops

This commit is contained in:
grumbulon 2023-01-28 23:41:53 -05:00
parent 9412d8ec28
commit 849f5d28fa

View file

@ -46,7 +46,7 @@ func (a *accountTest) TestMakeAccount(t *testing.T) {
form.Add("username", a.username)
form.Add("password", "test")
form.Add("password", a.password)
if req, err := http.NewRequest(http.MethodPost, "http://localhost:3010/api/create", strings.NewReader(form.Encode())); err == nil {
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
@ -77,7 +77,7 @@ func (a *accountTest) TestLogin(t *testing.T) {
form.Add("username", a.username)
form.Add("password", "test")
form.Add("password", a.password)
if req, err := http.NewRequest(http.MethodPost, "http://localhost:3010/api/login", strings.NewReader(form.Encode())); err == nil {
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")