aboutsummaryrefslogtreecommitdiff
path: root/reqres.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-16 16:56:16 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-16 16:56:16 +0100
commit7f06b2de5440a3523594daa2d74cf277c8af89cc (patch)
tree2186c59ae5a3fd61745c33adb01b4b0882e75a10 /reqres.go
parent38deaf4c6b4923eb4b0e77f151c0169ab439a268 (diff)
added get-proof-by-hash handler tests
Ensures that the respective error handling functions are invoked.
Diffstat (limited to 'reqres.go')
-rw-r--r--reqres.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/reqres.go b/reqres.go
index 5013d95..8e1c454 100644
--- a/reqres.go
+++ b/reqres.go
@@ -113,7 +113,7 @@ func (lp *LogParameters) newGetProofByHashRequest(httpRequest *http.Request) (*G
if err != nil {
return nil, fmt.Errorf("bad tree_size parameter: %v", err)
}
- if size < 0 {
+ if size < 1 {
return nil, fmt.Errorf("bad tree_size parameter: negative value")
}
hash, err := deb64(httpRequest.FormValue("hash"))