Skip to content

Commit

Permalink
resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
crysmags committed May 23, 2024
1 parent d7ef0fb commit 2f20137
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/web/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ function handleFetchDone (response) {
// This will publish all diagnostic events only when we have subscribers.
function ifSubscribersRunStores (req, input, init, callback) {
const hasSubscribers = subscribersCheck()
// console.log(arguments)

if (hasSubscribers) {
const context = { req, input, init, result: null, error: null }
Expand Down Expand Up @@ -426,7 +425,6 @@ function fetching ({
useParallelQueue = false,
dispatcher = getGlobalDispatcher() // undici
}) {
console.log('request', request)
// Ensure that the dispatcher is set accordingly
assert(dispatcher)

Expand Down Expand Up @@ -501,9 +499,9 @@ function fetching ({

// 9. If request’s origin is "client", then set request’s origin to request’s
// client’s origin.
console.log('reqyest', request)
if (request.origin === 'client') {
request.origin = request.client.origin
// TODO: What if request.client is null?
request.origin = request.client?.origin
}

// 10. If all of the following conditions are true:
Expand Down

0 comments on commit 2f20137

Please sign in to comment.