commit 7b2f2eef3312b050ea933c1c100dbf771fc7f51d
Author: Jim Meyering <meyering(a)redhat.com>
Date: Wed Nov 30 20:09:53 2011 +0100
add missing comma after first line of JSON obj header
* template.c (json_obj_header): Insert "," after first line.
* t/basic (bucket): Insert the comma here, too.
* NEWS: Mention it.
Reported by Brad P. Crochet in
http://bugzilla.redhat.com/754503.
NEWS | 1 +
t/basic | 2 +-
template.c | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index 053f45f..fe6e404 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ iwhd NEWS -*- outline
-*-
curl -H 'Accept: */json'
http://H:9090/b/o/_attrs
now includes an "object_body" URL of "http://H:9090/b/o/", which
matches the XML-formatted one, rather than "http://H:9090/b/o/body".
+ That same line now ends with a comma, too.
[bug introduced in 0.91]
** Changes in behavior
diff --git a/t/basic b/t/basic
index 9555ba1..9b71eb1 100644
--- a/t/basic
+++ b/t/basic
@@ -203,7 +203,7 @@ cat <<EOF > exp-attr-xml
EOF
cat <<EOF > exp-attr-json
{
- "object_body": "$bucket/attr_post"
+ "object_body": "$bucket/attr_post",
"object_attr_list": "$bucket/attr_post/_attrs",
"attr_shape": "$bucket/attr_post/attr_shape",
"attr_size": "$bucket/attr_post/attr_size"
diff --git a/template.c b/template.c
index 09513ce..a4fcb80 100644
--- a/template.c
+++ b/template.c
@@ -166,7 +166,7 @@ static const char json_list_footer[] = "\
static char json_obj_header[] = "\
{\n\
- \"object_body\": \"http://%s/%s/%s\"\n\
+ \"object_body\": \"http://%s/%s/%s\",\n\
\"object_attr_list\": \"http://%s/%s/%s/_attrs\"\
";