diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/loader/request.nim | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/loader/request.nim b/src/loader/request.nim index 521362bc..36e42963 100644 --- a/src/loader/request.nim +++ b/src/loader/request.nim @@ -231,9 +231,6 @@ proc fromJS2*(ctx: JSContext, val: JSValue, res: var JSResult[BodyInit]) = if JS_IsUndefined(val) or JS_IsNull(val): res.err(nil) return - if not JS_IsObject(val): - res.err(newTypeError("Not an object")) - return block formData: let x = fromJS[FormData](ctx, val) if x.isSome: |