aboutsummaryrefslogtreecommitdiff
path: root/src/js/out/InternalModuleRegistryConstants.h
diff options
context:
space:
mode:
authorGravatar Liz <accs@liz3.net> 2023-09-30 01:13:49 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-29 16:13:49 -0700
commitfa7d7bd1e4a701d1f5d3ec89f287f30a2dd0babb (patch)
tree53f30298dbabb6949355772db3470aa28682c118 /src/js/out/InternalModuleRegistryConstants.h
parent72bdd380af1739a2fccdeca4e3a196035ff58203 (diff)
downloadbun-fa7d7bd1e4a701d1f5d3ec89f287f30a2dd0babb.tar.gz
bun-fa7d7bd1e4a701d1f5d3ec89f287f30a2dd0babb.tar.zst
bun-fa7d7bd1e4a701d1f5d3ec89f287f30a2dd0babb.zip
fix: don't set default request method when creating a Request (#6154)
In the case of creating a Request with the parameters `(Request, object)`, there was a bug that method and headers are set from the default created by the init rather then the already present value from the request param. This is because for a to me unknown reason the order in which the parameters are processed is reversed. This fixes that by adding a check which stops the defaults from being set, unless they are explicitly passed. Fixes: https://github.com/oven-sh/bun/issues/6144
Diffstat (limited to 'src/js/out/InternalModuleRegistryConstants.h')
0 files changed, 0 insertions, 0 deletions