Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(http): Use default "accept-encoding" value #9652

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "Bearer abc",
"host": "git.company.org",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -28,7 +28,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "Bearer abc",
"host": "git.company.org",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -45,7 +45,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "Bearer abc",
"host": "git.company.org",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -62,7 +62,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "Bearer abc",
"host": "git.company.org",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -79,7 +79,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "Bearer abc",
"host": "api.github.example.org",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -96,7 +96,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "Bearer abc",
"host": "api.github.example.org",
"user-agent": "https://github.com/renovatebot/renovate",
Expand Down
6 changes: 3 additions & 3 deletions lib/config/presets/bitbucket/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`config/presets/bitbucket/index fetchJSONFile() returns JSON 1`] = `
Array [
Object {
"headers": Object {
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"host": "api.bitbucket.org",
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -18,7 +18,7 @@ exports[`config/presets/bitbucket/index fetchJSONFile() throws on error 1`] = `
Array [
Object {
"headers": Object {
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"host": "api.bitbucket.org",
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -32,7 +32,7 @@ exports[`config/presets/bitbucket/index fetchJSONFile() throws on invalid json 1
Array [
Object {
"headers": Object {
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"host": "api.bitbucket.org",
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand Down
26 changes: 13 additions & 13 deletions lib/config/presets/gitea/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -27,7 +27,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -43,7 +43,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -59,7 +59,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -75,7 +75,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -91,7 +91,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -107,7 +107,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -123,7 +123,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -139,7 +139,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -155,7 +155,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -166,7 +166,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -182,7 +182,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.gitea.example.org",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -198,7 +198,7 @@ Array [
Object {
"headers": Object {
"accept": "application/json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "gitea.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand Down
26 changes: 13 additions & 13 deletions lib/config/presets/github/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -27,7 +27,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -43,7 +43,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -59,7 +59,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -75,7 +75,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -91,7 +91,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -107,7 +107,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -123,7 +123,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -139,7 +139,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -155,7 +155,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -166,7 +166,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -182,7 +182,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.example.org",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -198,7 +198,7 @@ Array [
Object {
"headers": Object {
"accept": "application/vnd.github.v3+json",
"accept-encoding": "gzip, deflate",
"accept-encoding": "gzip, deflate, br",
"authorization": "token abc",
"host": "api.github.com",
"user-agent": "https://github.com/renovatebot/renovate",
Expand Down