minor documentation updates
[squeep-api-dingus] / lib / patches / incoming-message.js
index 894ca65428d79e9ff2ba7decd844d2573c7944d8..0b2e259c499ec932708c783dfbd44391b9e93564 100644 (file)
@@ -3,9 +3,9 @@ const { IncomingMessage } = require('http');
 
 /**
  * Welp, here we are, already into the crazy.
- * Per documentation (https://nodejs.org/docs/latest-v12.x/api/http.html#http_request_getheader_name)
- * this should exist, yet (as of 12.18.4) it does not.  So let us change this pitch up, and patch
-*/
+ * This originally existed due to a misinterpretation of the documentation,
+ * but it's really quite useful, so it stays in our world.
+ */
 /* istanbul ignore else */
 if (typeof IncomingMessage.getHeader !== 'function') {
   IncomingMessage.prototype.getHeader = function (name) {