diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-16 16:56:16 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-16 16:56:16 +0100 |
commit | 7f06b2de5440a3523594daa2d74cf277c8af89cc (patch) | |
tree | 2186c59ae5a3fd61745c33adb01b4b0882e75a10 /reqres.go | |
parent | 38deaf4c6b4923eb4b0e77f151c0169ab439a268 (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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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")) |