[ci skip] more suggested improvements
This commit is contained in:
@@ -57,9 +57,7 @@ func (h *Handler) EncryptData(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
h.Logger.Debug("encrypted plaintext payload", "input_length", len(plaintext))
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
_ = json.NewEncoder(w).Encode(map[string]string{
|
||||
writeJSON(w, http.StatusOK, map[string]string{
|
||||
"status": "OK",
|
||||
"message": cipherText,
|
||||
"prefixed": encryptedValuePrefixV1 + cipherText,
|
||||
|
||||
Reference in New Issue
Block a user