Skip to content

Commit

Permalink
feat: Do not attempt to wrap/stream the Body of a 204 Response (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Aug 27, 2024
1 parent 216e22e commit 549bcf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZitiFirstStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ {
}
headers.append( 'x-ziti-browzer-sw-workbox-strategies-version', pjson.version );

if ( (zitiResponse.status < 300 || zitiResponse.status > 399) ) {
if ( (!isEqual(zitiResponse.status, 204)) && (zitiResponse.status < 300 || zitiResponse.status > 399) ) {

if (isTextHtml) {

Expand Down

0 comments on commit 549bcf3

Please sign in to comment.