mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-13 21:53:21 +00:00
Compare commits
1 Commits
0f28223e02
...
wiinci-pat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddccd1e4c0 |
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@@ -5068,7 +5068,7 @@ async function getResponseData(response) {
|
|||||||
if (/application\/json/.test(contentType)) {
|
if (/application\/json/.test(contentType)) {
|
||||||
return response.json().catch(() => response.text()).catch(() => "");
|
return response.json().catch(() => response.text()).catch(() => "");
|
||||||
}
|
}
|
||||||
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
|
if (!contentType || /^(text\/|charset=utf-8)$/.test(contentType)) {
|
||||||
return response.text();
|
return response.text();
|
||||||
}
|
}
|
||||||
return getBufferResponse(response);
|
return getBufferResponse(response);
|
||||||
|
|||||||
Reference in New Issue
Block a user