Comments (6)
Thinking about your problem, I think we can solve this with a cooler way than a feature flipping flag.
Maye we should use the Accept
HTTP header. Only activate SSE if the Accept
request header is text/event-stream
.
I have to test, curl, and several Browsers to verify that this header is properly set when expecting a SSE response.
from webhookd.
As a result, using the Accept
header is a perfect choice for streaming protocol.
Thank you very much for this issue.
from webhookd.
Hi, thank you for the interest shown in this project!
I understand your need. Your concern is not really about the prefix but about the Server Sent Event (SSE) usage.
The prefix is part of the Event Stream format.
What the project needs is the possibility to activate/deactivate the SSE support.
Regards
from webhookd.
Thanks for the feedback. I learned something new. Until now, I didn't know about the Event Stream format. I will close my PR and work on a toggle to deactivate SSE if needed.
from webhookd.
Thanks for the neat solution! I already tested it using the edge
container image. Do you plan on creating a new release for this addition?
from webhookd.
Yes but maybe with another addition...
from webhookd.
Related Issues (20)
- Log public ip address behind reverse proxy HOT 5
- Override mailto in WHD_NOTIFICATION_URI HOT 2
- Add prefix to htpasswd for special paths HOT 3
- Unable to install nodejs specific version HOT 3
- Can't extend 1.15.1 image with own packages HOT 2
- Can I validate authentication token? HOT 2
- Issue with post payload not passing through HOT 5
- Having trouble installing python into alpine HOT 1
- is there a way to run the scripts on the docker host? HOT 3
- Feature Request: Client Certificate authentification HOT 2
- RPMs for openSUSE HOT 8
- Add X-Signature-Ed25519 support HOT 4
- Do we have a variable for the IP address, just like $user_agent? HOT 2
- Returning HTTP status codes HOT 4
- [Feature Request]: basic auth for multiple users HOT 3
- webhookd has no permission for accessing /var/run/docker.sock HOT 2
- The IP address using XFF only works when passing through proxy HOT 1
- Replace "docker-compose" with "docker compose" plugin HOT 1
- Error "openssl: not found" with /scripts/examples/github.sh in official Docker container HOT 1
- Docker logs in local TZ
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 webhookd.