8000 DX-1911: Add fastify example by CahidArda · Pull Request #108 · upstash/workflow-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DX-1911: Add fastify example #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 3, 2025
Merged

DX-1911: Add fastify example #108

merged 3 commits into from
Jun 3, 2025

Conversation

CahidArda
Copy link
Collaborator

Adds a fastify example

Copy link
linear bot commented May 28, 2025

Comment on lines +64 to +68
// @ts-expect-error getting encrypted property from raw socket
const encrypted: boolean = request.raw.socket.encrypted;

// Get full URL including protocol and host
const protocol = request.protocol || (encrypted ? 'https' : 'http');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have this fallback if request.protocol already returns it for us?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afair request.protocol should be enough in most cases, socket is checked in case first request is tcp

@CahidArda CahidArda merged commit bbeb16d into main Jun 3, 2025
20 of 21 checks passed
@CahidArda CahidArda deleted the DX-1911-fastify-example branch June 3, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0