megous/libxr — pull request #4 by onlycheez (2012-12-10 14:31:45+00:00)
Title: Fix: Empty POST request hung up and didn't return

When you sended POST request without any body you waited and waited and nothing happened.

I'm not very sure about the solution but it works. Maybe it should return -1. Another solution is pass 0 to g_input_stream_read_all as third parameter so if http->content_length == -1 then bytes_remaining = 0.