Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't marshal empty byte or uint8 slice as null #371

Merged
merged 1 commit into from
Jun 3, 2019

Commits on Jun 3, 2019

  1. Don't marshal empty byte or uint8 slice as null

    []byte or []uint8 are encoded as base-64 encoded string. Per this, non-nil
    empty slice should not get marshalled as null, rather as "".
    
    This restores compatibility with the standard library.
    nikhita committed Jun 3, 2019
    Configuration menu
    Copy the full SHA
    fb5614a View commit details
    Browse the repository at this point in the history