Return an error for 503

This commit is contained in:
Ben Adrian Sarmiento
2024-06-23 22:08:54 +02:00
parent 8bf39d58de
commit 3abf48514d
10 changed files with 87 additions and 65 deletions

View File

@@ -143,7 +143,7 @@ func (l *Logger) UploadLogFile() (string, error) {
}
// Create a request and add the proper headers.
req, err := http.NewRequest("POST", "https://0x0.st/", &b)
req, err := http.NewRequest(http.MethodPost, "https://0x0.st/", &b)
if err != nil {
return "", err
}