Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`req.connection.encrypted` is `undefined` in node:14

Open
#223 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript, node.js
Domain
backend

Research direction

Start at index.js around line 251 and inspect how the middleware determines the request protocol under Node 14. Replace the unsupported connection property with the protocol-based approach described in the issue, then verify that HTTP and HTTPS requests still produce the expected protocol value.

Written by the indexing model from the issue text.

Description

Need to replace with req.encrypted ? "https" : "http" or more succinctly req.protocol

https://github.com/prerender/prerender-node/blob/a21e8a5cc44b9ddb34b57530e17fed110d8d483b/index.js#L251

tried to push my branch to make a PR but I got access denied, can an existing contributor pr this?

Dominant language
JavaScript
Stars
921
Forks
185
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prerender/prerender-node

All issues in prerender/prerender-node

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.