diff pkg/controllers/srimports.go @ 4243:d776110b4db0 json-handler-middleware

Made the de-serialized input of the JSON handler accessible via the context of the request.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 22 Aug 2019 10:54:08 +0200
parents 1458c9b0fdaa
children 4394daeea96a
line wrap: on
line diff
--- a/pkg/controllers/srimports.go	Thu Aug 22 10:18:13 2019 +0200
+++ b/pkg/controllers/srimports.go	Thu Aug 22 10:54:08 2019 +0200
@@ -189,10 +189,7 @@
 	return &m, m.Decode(r)
 }
 
-func uploadSoundingResult(
-	_ interface{},
-	req *http.Request,
-) (jr JSONResult, err error) {
+func uploadSoundingResult(req *http.Request) (jr JSONResult, err error) {
 
 	var dir string
 	if dir, err = misc.StoreUploadedFile(