jsoninfo: refactor generation of the headers
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 12:37:41 +0000 (13:37 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 16:10:01 +0000 (17:10 +0100)
commit12371067c60461870d9ee4465debca98cb2662b6
treeb8da9b85866f72b3b762925750da15a866e3eade
parent5e78c734912c5897d7d29a1337bb68850586d752
jsoninfo: refactor generation of the headers

Just generate the headers at the start, leaving the Content-Length
value empty with a 12-spaces placeholder. Then at the end fill
in the value.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c