Browse Source

RepositoryContentFileOptions: specify .Content as unencoded

Fixes #263.
Parker Moore 10 years ago
committed by Will Norris
parent
commit
bd5f67a256
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      github/repos_contents.go

+ 1
- 1
github/repos_contents.go View File

@ -43,7 +43,7 @@ type RepositoryContentResponse struct {
// RepositoryContentFileOptions specifies optional parameters for CreateFile, UpdateFile, and DeleteFile.
type RepositoryContentFileOptions struct {
Message *string `json:"message,omitempty"`
Content []byte `json:"content,omitempty"`
Content []byte `json:"content,omitempty"` // unencoded
SHA *string `json:"sha,omitempty"`
Branch *string `json:"branch,omitempty"`
Author *CommitAuthor `json:"author,omitempty"`


Loading…
Cancel
Save