synchronoss / nio-multipart

A multipart library that uses nio and asynchronous processing
Apache License 2.0
93 stars 20 forks source link

why content-length is defined as int not long #7

Open javateck opened 7 years ago

javateck commented 7 years ago

why content-length is defined as int, not long, this is not RFC compliant, right? imagine people upload more than MAX int content and set the content-length, it will fail, it happens in MultipartContext, can we have a quick fix?

javateck commented 7 years ago

actually when I looked the code, seems no reference to this getContentLength, I guess we could just use -1 if it has int overflow