Skip to content

Commit

Permalink
Merge pull request #67 from alan16742/master
Browse files Browse the repository at this point in the history
fix: 401 Unauthorized
  • Loading branch information
vcheckzen authored Dec 7, 2024
2 parents ebeb339 + 8a50d0e commit 66c91a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion back-end-cf/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ async function authenticate(path, passwd) {
`${path}/${PASSWD_FILENAME}`,
null,
true
).then((resp) => (resp.status === 404 ? undefined : resp.text()));
)
.then((resp) => (resp.status === 401 ? cacheFetch(resp.url) : resp))
.then((resp) => (resp.status === 404 ? undefined : resp.text()));

if (pwFileContent) {
if (passwd !== pwFileContent) {
Expand Down

0 comments on commit 66c91a9

Please sign in to comment.