fix(reprot): use SQLite3 in current dir if not specified (#1103)

This commit is contained in:
Kota Kanbe
2020-12-26 08:24:17 +09:00
committed by GitHub
parent 8679759f60
commit a33cff8f13
4 changed files with 34 additions and 84 deletions

View File

@@ -37,7 +37,7 @@ type HTTPResponseWriter struct {
func (w HTTPResponseWriter) Write(rs ...models.ScanResult) (err error) {
res, err := json.Marshal(rs)
if err != nil {
return xerrors.Errorf("Failed to marshal scah results: %w", err)
return xerrors.Errorf("Failed to marshal scan results: %w", err)
}
w.Writer.Header().Set("Content-Type", "application/json")
_, err = w.Writer.Write(res)