Commit 44d50dd
committed
fix(fetch-error-handler): don't treat 304 responses as errors
`Response.ok` is only `true` for a 2xx response, but we don't want to
throw for 304 responses.
this is only a problem for apps that are sending `if-modified-since` or
`if-none-match` headers, which is rare, but happens to be done by
`@apollo/datasource-rest` in `cp-content-pipeline`.1 parent 46b7466 commit 44d50dd
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments