Don't pretty-print by default. Saves an allocation (or more) and a copy.
This commit is contained in:
@@ -505,7 +505,7 @@ func UpdateResource(r rest.Updater, scope RequestScope, typer runtime.ObjectType
|
||||
if wasCreated {
|
||||
status = http.StatusCreated
|
||||
}
|
||||
writeJSON(status, scope.Codec, result, w)
|
||||
writeJSON(status, scope.Codec, result, w, isPrettyPrint(req.Request))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user