Skip to content

Commit

Permalink
feat(api): Wrap unpack response in api envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed Oct 10, 2018
1 parent 54aa3ee commit aa5df03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/datasets.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,5 @@ func (h DatasetHandlers) unpackHandler(w http.ResponseWriter, r *http.Request, p
util.WriteErrResponse(w, http.StatusInternalServerError, err)
return
}
// Send response.
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
w.Write(data)
util.WriteResponse(w, json.RawMessage(data))
}
Binary file modified api/testdata/api.snapshot
Binary file not shown.

0 comments on commit aa5df03

Please sign in to comment.