dabs
Full Member
Posts: 78
|
Post by dabs on Dec 28, 2020 12:50:25 GMT
Hi,
I'm running into a strange error. Under certain circumstances, when my app uses Rho::Network.post to send data to our backend, the app gets a HTTP 411 back. Which would indicate that the Content-Length HTTP Header is missing.
This doesn't seem to be a problem when using the emulator, and at the moment the only occurrence of this has happened on a device running Android 10.
Has anyone seen this error or experienced something similar?
Regards, DanĂel
|
|
dabs
Full Member
Posts: 78
|
Post by dabs on Dec 29, 2020 10:36:01 GMT
FYI: the reason for this was that I was adding a HTTP header with a base64 encoded value. However, the method I was using to encode the value added newlines to the result. This was NOT doing me any favours! In short, instead of using Base64.encode64(), I'm now using Base64.strict_encode64().
|
|
|
Post by Alex Epifanov on Dec 29, 2020 14:28:46 GMT
dabs, thanks for letting us know Daniel! And have a great New Year!
|
|