Skip to content

Instantly share code, notes, and snippets.

View mike-solomon's full-sized avatar
💭
I don't always tell Dad jokes, but when I do, he laughs.

Mike Solomon mike-solomon

💭
I don't always tell Dad jokes, but when I do, he laughs.
  • Vancouver, WA
View GitHub Profile
@benzapier
benzapier / return200.js
Last active November 18, 2019 23:01
Simple webserver that runs and replies with a `200` request to anything/everything.
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
// https://stackoverflow.com/questions/50908120/
const rawBodySaver = function (req, res, buf, encoding) {
if (buf && buf.length) {
req.rawBody = buf.toString(encoding || 'utf8');
}
}