@@ -148,6 +148,8 @@ public System.IO.Stream GetBarcodeGenerate(GetBarcodeGenerateRequest request)
148148 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "barWidthReduction" , request . BarWidthReduction ) ;
149149 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "format" , request . format ) ;
150150
151+ var headerParams = new Dictionary < string , string > ( ) ;
152+
151153 return _apiInvoker . InvokeBinaryApi (
152154 resourcePath ,
153155 "GET" ,
@@ -213,11 +215,13 @@ public BarcodeResponseList GetBarcodeRecognize(GetBarcodeRecognizeRequest reques
213215 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "storage" , request . storage ) ;
214216 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "folder" , request . folder ) ;
215217
218+ var headerParams = new Dictionary < string , string > ( ) ;
219+
216220 var response = _apiInvoker . InvokeApi (
217221 resourcePath ,
218222 "GET" ,
219223 null ,
220- null ,
224+ headerParams ,
221225 null ) ;
222226
223227 if ( response != null )
@@ -280,15 +284,19 @@ public BarcodeResponseList PostBarcodeRecognizeFromUrlOrContent(PostBarcodeRecog
280284 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "rectangleRegion" , request . RectangleRegion ) ;
281285 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "url" , request . url ) ;
282286
287+ var headerParams = new Dictionary < string , string > ( ) ;
288+
283289 if ( request . image != null )
284290 {
285291 formParams . Add ( "image" , _apiInvoker . ToFileInfo ( request . image , "image" ) ) ;
292+ headerParams [ "Content-Type" ] = "multipart/form-data" ;
293+
286294 }
287295 var response = _apiInvoker . InvokeApi (
288296 resourcePath ,
289297 "POST" ,
290298 null ,
291- null ,
299+ headerParams ,
292300 formParams ) ;
293301
294302 if ( response != null )
@@ -321,6 +329,8 @@ public System.IO.Stream PostGenerateMultiple(PostGenerateMultipleRequest request
321329 . Replace ( "&" , "&" )
322330 . Replace ( "/?" , "?" ) ;
323331 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "format" , request . format ) ;
332+
333+ var headerParams = new Dictionary < string , string > ( ) ;
324334 var postBody = SerializationHelper . Serialize ( request . generatorParamsList ) ; // http body (model) parameter
325335 return _apiInvoker . InvokeBinaryApi (
326336 resourcePath ,
@@ -399,11 +409,13 @@ public ResultImageInfo PutBarcodeGenerateFile(PutBarcodeGenerateFileRequest requ
399409 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "folder" , request . folder ) ;
400410 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "format" , request . format ) ;
401411
412+ var headerParams = new Dictionary < string , string > ( ) ;
413+
402414 var response = _apiInvoker . InvokeApi (
403415 resourcePath ,
404416 "PUT" ,
405417 null ,
406- null ,
418+ headerParams ,
407419 null ) ;
408420
409421 if ( response != null )
@@ -444,12 +456,14 @@ public BarcodeResponseList PutBarcodeRecognizeFromBody(PutBarcodeRecognizeFromBo
444456 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "type" , request . type ) ;
445457 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "storage" , request . storage ) ;
446458 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "folder" , request . folder ) ;
459+
460+ var headerParams = new Dictionary < string , string > ( ) ;
447461 var postBody = SerializationHelper . Serialize ( request . readerParams ) ; // http body (model) parameter
448462 var response = _apiInvoker . InvokeApi (
449463 resourcePath ,
450464 "PUT" ,
451465 postBody ,
452- null ,
466+ headerParams ,
453467 null ) ;
454468
455469 if ( response != null )
@@ -490,12 +504,14 @@ public ResultImageInfo PutGenerateMultiple(PutGenerateMultipleRequest request)
490504 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "format" , request . format ) ;
491505 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "folder" , request . folder ) ;
492506 resourcePath = UrlHelper . AddQueryParameterToUrl ( resourcePath , "storage" , request . storage ) ;
507+
508+ var headerParams = new Dictionary < string , string > ( ) ;
493509 var postBody = SerializationHelper . Serialize ( request . generatorParamsList ) ; // http body (model) parameter
494510 var response = _apiInvoker . InvokeApi (
495511 resourcePath ,
496512 "PUT" ,
497513 postBody ,
498- null ,
514+ headerParams ,
499515 null ) ;
500516
501517 if ( response != null )
0 commit comments