Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22-alpine AS build
FROM node:26-alpine AS build

WORKDIR /app
COPY . /app
Expand All @@ -19,7 +19,7 @@ RUN set -ex \
&& chown -R node:node /app \
&& chmod +r /app/testpk.pem

FROM node:22-alpine AS final
FROM node:26-alpine AS final
LABEL \
org.opencontainers.image.title="http-https-echo" \
org.opencontainers.image.description="Docker image that echoes request data as JSON; listens on HTTP/S, with various extra features, useful for debugging." \
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ app.all('/{*splat}', (req, res) => {
}

//Delay the response for a user defined time
const sleepTime = parseInt(req.headers["x-set-response-delay-ms"] || req.query["x-set-response-delay-ms"], 0)
const sleepTime = parseInt(req.headers["x-set-response-delay-ms"] || req.query["x-set-response-delay-ms"]) || 0;
sleep(sleepTime).then(() => {

//Set the response content type to what the user wants
Expand Down
Loading