write_http: make StoreRates work for JSON format, too.
authorChris Buben <cbuben@eventlogic.com>
Wed, 24 Mar 2010 03:53:30 +0000 (20:53 -0700)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 24 Mar 2010 16:33:50 +0000 (17:33 +0100)
commit670442e38158af0eb6b4a4efa6becfa6696129e7
treeef71949a232ba71c2efa7a4b3ac16a82cb77ff54
parentcdf943c298cfdce9f088c2393e48e07b5b14d693
write_http: make StoreRates work for JSON format, too.

StoreRates for write_http was inconsistent in that it only functioned
for WH_FORMAT_COMMAND.  Extend StoreRates so that it works when using
WH_FORMAT_JSON, too.

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/utils_format_json.c
src/utils_format_json.h
src/write_http.c