diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-13 21:50:05 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-13 21:50:05 (GMT) |
commit | 8816d31e40ad06f2c634574cf6afbbef11ddbb95 (patch) | |
tree | 023f7f976d1df343c04321c48af0018a3701842e /src/rhimportd/ctrlWebSimple.go | |
parent | b828b53ef47cbe22c5e1f8bbe7aaeff51850ea76 (diff) |
added normalization step
Diffstat (limited to 'src/rhimportd/ctrlWebSimple.go')
-rw-r--r-- | src/rhimportd/ctrlWebSimple.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rhimportd/ctrlWebSimple.go b/src/rhimportd/ctrlWebSimple.go index 05bbb4d..e690571 100644 --- a/src/rhimportd/ctrlWebSimple.go +++ b/src/rhimportd/ctrlWebSimple.go @@ -147,6 +147,11 @@ func webSimpleHandler(conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport return } + if err = rhimport.NormalizeFile(ctx); err != nil { + webSimpleErrorResponse(w, http.StatusInternalServerError, err.Error()) + return + } + if res, err = rhimport.ImportFile(ctx); err != nil { webSimpleErrorResponse(w, http.StatusInternalServerError, err.Error()) return |