Skip to content

Commit e78bca3

Browse files
aveladjoeyparrish
authored andcommitted
fix(net): Add 304 as successful request (#7963)
Fixes #7925
1 parent 51633c9 commit e78bca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http_plugin_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ shaka.net.HttpPluginUtils = class {
3030
static makeResponse(headers, data, status, uri, responseURL, requestType) {
3131
goog.asserts.assert(data, 'Data should be non-null!');
3232

33-
if (status >= 200 && status <= 299 && status != 202) {
33+
if ((status >= 200 && status <= 299 && status != 202) || status == 304) {
3434
// Most 2xx HTTP codes are success cases.
3535
/** @type {shaka.extern.Response} */
3636
const response = {

0 commit comments

Comments
 (0)