Skip to content

Commit

Permalink
fix(net): Add 304 as successful request (#7963)
Browse files Browse the repository at this point in the history
Fixes #7925
  • Loading branch information
avelad committed Jan 29, 2025
1 parent b183197 commit 4dd0029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/http_plugin_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ shaka.net.HttpPluginUtils = class {
requestType) {
goog.asserts.assert(data, 'Data should be non-null!');

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

0 comments on commit 4dd0029

Please sign in to comment.