Skip to content

Commit ab7a549

Browse files
authored
Merge pull request #110 from mendhak/node26
Node 26
2 parents c2db67a + dc0993e commit ab7a549

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-alpine AS build
1+
FROM node:26-alpine AS build
22

33
WORKDIR /app
44
COPY . /app
@@ -19,7 +19,7 @@ RUN set -ex \
1919
&& chown -R node:node /app \
2020
&& chmod +r /app/testpk.pem
2121

22-
FROM node:22-alpine AS final
22+
FROM node:26-alpine AS final
2323
LABEL \
2424
org.opencontainers.image.title="http-https-echo" \
2525
org.opencontainers.image.description="Docker image that echoes request data as JSON; listens on HTTP/S, with various extra features, useful for debugging." \

‎index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ app.all('/{*splat}', (req, res) => {
176176
}
177177

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

182182
//Set the response content type to what the user wants

0 commit comments

Comments
 (0)