summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0004_hardware.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-08-24 14:45:26 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-08-25 10:55:45 +0200
commit36b5064970ea42a06a9ac9f8d91d45da00e45f89 (patch)
tree3cb50dc4306b77cbe1135332283e058c9f015fff /tests/units/test_0004_hardware.py
parent0593119352b24c0372c0bd222641789c01fc4c5c (diff)
#1000 Fix ogClient HTTP length handling
Irina reports that "Partition assistant"/"Asistente de particionado" is not working. This is happening because ogClient is not reading the full data ogServer sends when the entire HTTP PDU is larger than 1024. However, ogClient should read the whole message, reading until read data length is greater or equal to "Content-Length" header value. ogClient fails to obtain "Content-Length" value because is looking for "content-length", be aware of the case sensitivity. It also needs to take into account the header length because read data length also includes headers. This patch updates ogClient to: 1) look for "Content-Length instead of "content-length". 2) compare read date length with content length plus headers length.
Diffstat (limited to 'tests/units/test_0004_hardware.py')
0 files changed, 0 insertions, 0 deletions