Skip to content

Commit 4395f76

Browse files
committed
Coerce to dict
1 parent bb5cd78 commit 4395f76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sentry/scm/private/providers/github.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def get_pull_request_diff(
712712
return {
713713
"data": response.text,
714714
"type": "github",
715-
"raw": {"data": response.text, "headers": response.headers},
715+
"raw": {"data": response.text, "headers": dict(response.headers)},
716716
"meta": _extract_response_meta(response),
717717
}
718718

@@ -933,7 +933,7 @@ def get_archive_link(
933933
return {
934934
"data": ArchiveLink(url=response.headers["Location"], headers={}),
935935
"type": "github",
936-
"raw": {"data": response.headers["Location"], "headers": response.headers},
936+
"raw": {"data": response.headers["Location"], "headers": dict(response.headers)},
937937
"meta": _extract_response_meta(response),
938938
}
939939

@@ -1125,7 +1125,7 @@ def map_action[T](
11251125
return {
11261126
"data": fn(raw),
11271127
"type": "github",
1128-
"raw": {"data": raw, "headers": response.headers},
1128+
"raw": {"data": raw, "headers": dict(response.headers)},
11291129
"meta": _extract_response_meta(response),
11301130
}
11311131

@@ -1143,6 +1143,6 @@ def map_paginated_action[T](
11431143
return {
11441144
"data": fn(raw),
11451145
"type": "github",
1146-
"raw": {"data": raw, "headers": response.headers},
1146+
"raw": {"data": raw, "headers": dict(response.headers)},
11471147
"meta": meta,
11481148
}

0 commit comments

Comments
 (0)