Skip to content

Commit

Permalink
fix(bug): review comments cypress-io#16973
Browse files Browse the repository at this point in the history
  • Loading branch information
kshastri committed Jun 14, 2022
1 parent debb98f commit 6260f72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/proxy/lib/http/response-middleware.ts
Expand Up @@ -511,7 +511,10 @@ const CopyResponseStatusCode: ResponseMiddleware = function () {
this.res.status(Number(this.incomingRes.statusCode))
// Set custom status message/reason phrase from http response
// https://github.com/cypress-io/cypress/issues/16973
this.res.statusMessage = this.incomingRes.statusMessage || ''
if (this.incomingRes.statusMessage) {
this.res.statusMessage = this.incomingRes.statusMessage
}

this.next()
}

Expand Down

0 comments on commit 6260f72

Please sign in to comment.