@@ -205,14 +205,12 @@ export const sendRequest = async <T>(
205205) : Promise < AxiosResponse < T > > => {
206206 const controller = new AbortController ( )
207207
208- // Properly handle form data for URL-encoded submissions
209208 let data = body ;
210209
211210 // If we have formData but it's not a FormData instance,
212211 // and Content-Type is application/x-www-form-urlencoded
213212 if ( options . formData && ! isFormData ( options . formData ) &&
214213 headers [ "Content-Type" ] === "application/x-www-form-urlencoded" ) {
215- // Use URLSearchParams or axios's built-in handling for url-encoded data
216214 const params = new URLSearchParams ( ) ;
217215 Object . entries ( options . formData ) . forEach ( ( [ key , value ] ) => {
218216 if ( value !== undefined && value !== null ) {
@@ -232,14 +230,6 @@ export const sendRequest = async <T>(
232230 url,
233231 withCredentials : options . withCredentials ?? config . WITH_CREDENTIALS ,
234232 }
235-
236- console . log ( "Request config:" , JSON . stringify ( {
237- url : requestConfig . url ,
238- method : requestConfig . method ,
239- headers : requestConfig . headers ,
240- withCredentials : requestConfig . withCredentials
241- } ) ) ;
242-
243233 onCancel ( ( ) => controller . abort ( ) )
244234
245235 for ( const fn of config . interceptors . request . _fns ) {
@@ -402,7 +392,6 @@ export const request = <T>(
402392 statusText : response . statusText ,
403393 body : responseHeader ?? transformedBody ,
404394 }
405- console . log ( result )
406395 catchErrorCodes ( options , result )
407396
408397 resolve ( result . body )
0 commit comments