fix swagger handler
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
63ae848043
commit
90b7b7ec1c
@ -29,6 +29,11 @@ var Handler = func(dst map[string]interface{}, fsys fs.FS) http.HandlerFunc {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if dst == nil {
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
|
_, _ = w.Write(buf)
|
||||||
|
}
|
||||||
|
|
||||||
var src interface{}
|
var src interface{}
|
||||||
|
|
||||||
if err = c.Unmarshal(buf, src); err != nil {
|
if err = c.Unmarshal(buf, src); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user