Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Explicitly check for postback instead of defaulting to it when prepar…
Browse files Browse the repository at this point in the history
…ing the response to a request. This fixes #7
  • Loading branch information
mirceanis committed Nov 2, 2018
1 parent 02db5e6 commit 2bcdf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sagas/requests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export function * performCallback (request, response) {
const callbackUrl = URL(request.callback_url)
const redirectUrl = request.redirect_url ? URL(request.redirect_url) : undefined

if (request.postback !== false || callbackUrl.hostname.match(/^(chasqui|api)\.uport\.(me|space)$/)) {
if (request.postback === true || callbackUrl.hostname.match(/^(chasqui|api)\.uport\.(me|space)$/)) {
yield call(postBackToServer, request, response)
if (redirectUrl !== undefined) {
return yield call(returnToApp, redirectUrl, undefined)
Expand Down

0 comments on commit 2bcdf2a

Please sign in to comment.