api: fix postLayer response headers

This commit is contained in:
Quentin Machu 2016-02-12 16:24:06 -05:00 committed by Jimmy Zelinskie
parent 41736e4600
commit db974ae722

View File

@ -103,7 +103,6 @@ func postLayer(w http.ResponseWriter, r *http.Request, p httprouter.Params, ctx
return postLayerRoute, http.StatusInternalServerError
}
w.WriteHeader(http.StatusCreated)
writeResponse(w, r, http.StatusCreated, LayerEnvelope{Layer: &Layer{
Name: request.Layer.Name,
ParentName: request.Layer.ParentName,