Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add length check for empty policy content (#326)
If an empty file used as input for policy creation a zero sized byte array gets passed. Corrected the check to see length and if it's zero, error out. Earlier error was confusing as below ``` mc: <ERROR> Unable to create new policy. You must provide the Content-Length HTTP header. ``` Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
- Loading branch information