import bugfix as per https://github.com/joeferner/node-http-mitm-proxy/commit/c2305aa485ee960e61dfd6ad948cdc6e8733a412