commit c3cd139062b5450dbf4e37bf51415fb3ba75a590
parent 0f4fd27bbb9ae45a51e571f4ca676345c0b7527f
Author: parazyd <parazyd@dyne.org>
Date: Tue, 12 Dec 2017 12:45:56 +0100
Handle HTTP 400 in dam-client.
We now normally return a HTTP 400 instead of a 500 (even if there is an
internal error), so we handle that one now.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/dam-client/main.go b/cmd/dam-client/main.go
@@ -45,7 +45,7 @@ func announce(dir string, vals map[string]string, privkey *rsa.PrivateKey) (bool
return false, err
}
- if resp.StatusCode == 500 {
+ if resp.StatusCode == 400 {
log.Printf("%s: Fail. Reply: %s\n", dir, m.Secret)
return false, nil
}