Skip to content

Commit 3227cb5

Browse files
committed
Add application/json
Added support for application/json content type. Enabling interaction with APIs like https://api.github.com/repos/<user>/<repo>/releases/latest.
1 parent 56caa16 commit 3227cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/xbps-src/shutils/update_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ update_check() {
222222
fi
223223

224224
msg_verbose "fetching $url and scanning with $rx\n"
225-
curl "${curlargs[@]}" -H 'Accept: text/html,application/xhtml+xml,application/xml,text/plain,application/rss+xml' "$url" |
225+
curl "${curlargs[@]}" -H 'Accept: text/html,application/xhtml+xml,application/xml,text/plain,application/rss+xml,application/json' "$url" |
226226
grep -Po -i "$rx"
227227
fetchedurls[$url]=yes
228228
done |

0 commit comments

Comments
 (0)