pranavraja / tldr

Go client for rprieto/tldr, with static binary downloads
Other
92 stars 12 forks source link

Fix #13 'Unexpected status code: 404' error #14

Open kgantsov opened 6 years ago

kgantsov commented 6 years ago

According to a .gitignore file from tldr-pages repo file index.json was moved from the repo to a https://tldr-pages.github.io/assets/index.json so I fixed it and now it works.

Sjeanpierre commented 6 years ago

@kgantsov looks like you changed the var that was referencing https://github.com/pranavraja/tldr/blob/ca051027f9afe00632d762d25536165c719416af/main.go#L18.

it might be better to change it here

kgantsov commented 6 years ago

@Sjeanpierre Actually it's not going to work because this variable remoteAddress also used for getting docs pages and it did work previously only because the file index.json also was there but now it has been moved.