Skip to content

Commit a0ed8da

Browse files
authored
fix(net): Add 304 as successful request (#7963)
Fixes #7925
1 parent 4c6c576 commit a0ed8da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http_plugin_utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ shaka.net.HttpPluginUtils = class {
3232
requestType) {
3333
goog.asserts.assert(data, 'Data should be non-null!');
3434

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

0 commit comments

Comments
 (0)