Skip to content

Commit

Permalink
Merge pull request #350 from Availity/TheSharpieOne-patch-1
Browse files Browse the repository at this point in the history
fix: proxy body write condition
  • Loading branch information
robert mcguinness committed Oct 29, 2019
2 parents 6337ae7 + 1b7da8f commit d53e8df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workflow/scripts/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function onResponse(proxyConfig, proxyObject, req, res) {
});

const isJson = typeIs.is(proxyObject.headers['content-type'], ['json']) === 'json';
if (isJson && !proxyObject.statusCode === 304) {
if (isJson && proxyObject.statusCode !== 304) {
proxyJson(res, proxyObject.headers['content-encoding'], body => {
if (body) {
const json = JSON.stringify(body);
Expand Down

0 comments on commit d53e8df

Please sign in to comment.