Skip to content

Commit

Permalink
FIX filename json key
Browse files Browse the repository at this point in the history
The json key use for files name was `file_name` whereas gist API uses
`filename` (without underscore) as a key. As a consequence download was
not working.
Change to use the right key.

REF #16

Details:
* CHANGE `file_name` to `filename`
  • Loading branch information
MaximeD committed Jan 6, 2014
1 parent 70569f0 commit 6e5574a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json/gist_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type File struct {
}

type FileDetails struct {
FileName string `json:"file_name"`
FileName string `json:"filename"`
Type string `json:"type"`
Language string `json:"language"`
RawUrl string `json:"raw_url"`
Expand Down

0 comments on commit 6e5574a

Please sign in to comment.