api: fix postLayer response headers
This commit is contained in:
parent
41736e4600
commit
db974ae722
@ -103,7 +103,6 @@ func postLayer(w http.ResponseWriter, r *http.Request, p httprouter.Params, ctx
|
|||||||
return postLayerRoute, http.StatusInternalServerError
|
return postLayerRoute, http.StatusInternalServerError
|
||||||
}
|
}
|
||||||
|
|
||||||
w.WriteHeader(http.StatusCreated)
|
|
||||||
writeResponse(w, r, http.StatusCreated, LayerEnvelope{Layer: &Layer{
|
writeResponse(w, r, http.StatusCreated, LayerEnvelope{Layer: &Layer{
|
||||||
Name: request.Layer.Name,
|
Name: request.Layer.Name,
|
||||||
ParentName: request.Layer.ParentName,
|
ParentName: request.Layer.ParentName,
|
||||||
|
Loading…
Reference in New Issue
Block a user