Comments (1)
I'm interested in this as well. Seems pretty easy to fix and I can provide a PR but the authors doesn't seem to maintain this repository anymore so I won't spend time on this right now.
This is how you get what main page suffix and not found page is set to:
bucketAttr, _ := client.Bucket(c.BucketName).Attrs(context.Background())
fmt.Println(bucketAttr.Website.MainPageSuffix)
fmt.Println(bucketAttr.Website.NotFoundPage)
If the given r.URL.Path
404s, we should try filepath.Join(r.URL.Path, bucketAttr.Website.MainPageSuffix)
. Might need some tweaking to support both trailing slashes and not.
from gcs-helper.
Related Issues (13)
- support byte ranges
- Kill proxy and add option to return signed URLs on map
- Support bitrate value
- Sample of use gcs-helper with Kaltura VOD HOT 1
- oauth2: cannot fetch token: 400 Bad Request HOT 1
- oauth2: cannot fetch token: 400 Bad Request HOT 9
- support recursive listing of folder content HOT 8
- Dependabot can't resolve your Go dependency files
- Run as non root?
- Corrupt Docker Hub registry
- Does not support large files HOT 1
- Issues building docker image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcs-helper.