https://github.com/imvexed/gitcdn
raw.githubusercontent.com clone with file content type fixup
https://github.com/imvexed/gitcdn
api cdn github
Last synced: about 1 month ago
JSON representation
raw.githubusercontent.com clone with file content type fixup
- Host: GitHub
- URL: https://github.com/imvexed/gitcdn
- Owner: ImVexed
- Created: 2018-09-29T23:41:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-29T23:49:11.000Z (over 7 years ago)
- Last Synced: 2025-10-11T13:18:37.493Z (9 months ago)
- Topics: api, cdn, github
- Language: Go
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# gitcdn
Is a repository that contains a simple `raw.githubusercontent.com` alternative that additionally adds a `Content-Type` header based on the requested file type extension to the response.
The various languages this has been implemented in hold no opinion on what the "correct" packages/dependencies to be used are. They were simply chosen due to their ease of use or maintainability at the time of writing.
## Example
Each program functions the same as `raw.githubusercontent.com` the only change that needs to be made to requests is the base url.
For example
```https://raw.githubusercontent.com/golang/go/master/doc/gopher/fiveyears.jpg```
while debugging locally becomes
```http://localhost/golang/go/master/doc/gopher/fiveyears.jpg```