Skip to content

Commit

Permalink
Fixed lowercase B for bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
brona-ruzicka committed Dec 23, 2022
1 parent cf3865d commit 00e56d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ app.post("*", async (request, response) => {
await fs.promises.mkdir(directoryPath, { recursive: true });
await fs.promises.writeFile(fullPath, request.body);

console.log(`${request.body.byteLength} b`.padStart(10), `|`, requestPath);
console.log(`${request.body.byteLength} B`.padStart(10), `|`, requestPath);

response.sendStatus(204);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-http-file-saver",
"version": "1.0.0",
"version": "1.0.1",
"description": "A simple program running an HTTP server on localhost. It saves any POST request body into a file, whose location (inside a specified output directory) is determined by the request pathname.",
"homepage": "https://github.com/brona-ruzicka/simple-http-file-saver#readme",
"keywords": ["http", "express", "npx", "utility"],
Expand Down

0 comments on commit 00e56d9

Please sign in to comment.