iris icon indicating copy to clipboard operation
iris copied to clipboard

[BUG] DisableBodyConsumptionOnUnmarshal not effective

Open CyJaySong opened this issue 1 year ago • 6 comments

Describe the bug DisableBodyConsumptionOnUnmarshal not effective

To Reproduce _ = irisApp.Run(iris.Addr("0.0.0.0:8080"), iris.WithPathEscape, iris.WithOptimizations, iris.WithoutInterruptHandler, iris.WithoutBodyConsumptionOnUnmarshal)

Expected behavior fix it

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS

iris.Version

  • v12.2.0-beta4

CyJaySong avatar Jul 27 '22 11:07 CyJaySong

Hello @CyJaySong,

So, the example doesn't work on your side?

kataras avatar Jul 27 '22 11:07 kataras

@kataras yes, get a error with 'EOF' content when second unmarshal

CyJaySong avatar Jul 27 '22 12:07 CyJaySong

@CyJaySong I don't see the error. The example is working. Could you please post a code snippet which reproduces the issue, based on the feature?

image

kataras avatar Jul 27 '22 21:07 kataras

@kataras image

lQLPJxaJZ58OssnNAc7NBJSwDrjwlyheHwkC4jC20ACJAA_1172_462 png_720x720g

CyJaySong avatar Jul 28 '22 00:07 CyJaySong

@kataras No exceptions when i use v12.2.0-beta3

CyJaySong avatar Jul 28 '22 03:07 CyJaySong

@CyJaySong I don't see the error. The example is working. Could you please post a code snippet which reproduces the issue, based on the feature?

image

@kataras readjson same problem

hwzp99 avatar Aug 02 '22 03:08 hwzp99

Please refer to the solution of #1949

yjz2222 avatar Aug 10 '22 08:08 yjz2222