Browse Source

Cosmetics

Piotr Czajkowski 3 years ago
parent
commit
cf8d390532
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app.go

+ 2 - 1
app.go

@@ -6,6 +6,7 @@ import (
 	"io"
 	"io/ioutil"
 	"log"
+	"net/http"
 	"os"
 	"strings"
 	"time"
@@ -72,7 +73,7 @@ func (app *Application) login() (bool, error) {
 	}
 	defer resp.Body.Close()
 
-	if resp.StatusCode != 200 {
+	if resp.StatusCode != http.StatusOK {
 		return false, fmt.Errorf("Error logging in: %s", resp.Status)
 	}