@requestly/requestly-proxy 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,7 @@ class SslCertMiddleware {
19
19
  if (ctx.clientToProxyRequest.headers.host == "requestly.io" &&
20
20
  ctx.clientToProxyRequest.url.indexOf("/ssl") == 0) {
21
21
  ctx.proxyToClientResponse.writeHead(200, {
22
- "Content-Type": "text/plain",
22
+ "Content-Type": "application/x-x509-ca-cert",
23
23
  "Content-Disposition": "attachment;filename=RQProxyCA.pem.crt",
24
24
  });
25
25
  const certificateString = fs.readFileSync(this.rootCertPath);
@@ -1135,6 +1135,7 @@ Proxy.prototype._onRequestData = function (ctx, chunk, callback) {
1135
1135
  if (err) {
1136
1136
  return callback(err);
1137
1137
  }
1138
+ chunk = newChunk;
1138
1139
  return callback(null, newChunk);
1139
1140
  });
1140
1141
  }, function (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@requestly/requestly-proxy",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Proxy that gives superpowers to all the Requestly clients",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {