1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #21789 from npcode/docs-plugins-authorization-null

Use 'null' instead of 'nil' for json
This commit is contained in:
Lei Jitang 2016-04-06 15:29:40 +08:00
commit bb9b17314d

View file

@ -196,8 +196,8 @@ should implement the following two methods:
"Allow": "Determined whether the user is allowed or not", "Allow": "Determined whether the user is allowed or not",
"Msg": "The authorization message", "Msg": "The authorization message",
"Err": "The error message if things go wrong", "Err": "The error message if things go wrong",
"ModifiedBody": "Byte array containing a modified body of the raw HTTP body (or nil if no changes required)", "ModifiedBody": "Byte array containing a modified body of the raw HTTP body (or null if no changes required)",
"ModifiedHeader": "Byte array containing a modified header of the HTTP response (or nil if no changes required)", "ModifiedHeader": "Byte array containing a modified header of the HTTP response (or null if no changes required)",
"ModifiedStatusCode": "int containing the modified version of the status code (or 0 if not change is required)" "ModifiedStatusCode": "int containing the modified version of the status code (or 0 if not change is required)"
} }
``` ```