You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems (?) the JSON served by github.com has changed. I had to modify a field-tag in gist_json.go, type FileDetails, to make download work again. See patch below:
diff --git a/json/gist_json.go b/json/gist_json.go
index f1d66d9..5c77a0c 100644
--- a/json/gist_json.go
+++ b/json/gist_json.go
@@ -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"`
The text was updated successfully, but these errors were encountered:
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`
It seems (?) the JSON served by github.com has changed. I had to modify a field-tag in gist_json.go, type FileDetails, to make download work again. See patch below:
The text was updated successfully, but these errors were encountered: