summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimportd
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-12 04:18:41 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-12 04:18:41 (GMT)
commit60a2313659b57f66d502d44729b6b78f07bd3883 (patch)
treeb72491ebc9f21d3b254335cb1ad532d3b3be6ade /src/helsinki.at/rhimportd
parentdc915f7519a166c4cab5128593894ff368b77ac8 (diff)
some thoughts
Diffstat (limited to 'src/helsinki.at/rhimportd')
-rw-r--r--src/helsinki.at/rhimportd/ctrlWebSimple.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlWebSimple.go b/src/helsinki.at/rhimportd/ctrlWebSimple.go
index 3f9c48d..a57e8c5 100644
--- a/src/helsinki.at/rhimportd/ctrlWebSimple.go
+++ b/src/helsinki.at/rhimportd/ctrlWebSimple.go
@@ -108,6 +108,10 @@ func webSimpleHandler(conf *rhimport.Config, rddb *rhimport.RdDb, trusted bool,
return
}
+ // TODO: add a sanity check for the context:
+ // it would be nice to know whether a request is bogus
+ // *before* we fetch a big file!
+
if err = rhimport.FetchFile(ctx); err != nil {
webSimpleErrorResponse(w, http.StatusInternalServerError, err.Error())
return