Skip to content

Commit fb7fc0c

Browse files
author
root
committed
fix wrong ows:ServiceTypeVersion sequence
1 parent 62dc3fd commit fb7fc0c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ows/ows_get_capabilities.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,9 @@ void ows_service_identification(const ows * o)
131131
}
132132

133133
fprintf(o->output, " <ows:ServiceType>%s</ows:ServiceType>\n", o->metadata->type->buf);
134-
fprintf(o->output, " <ows:ServiceTypeVersion>");
134+
for (ln = o->metadata->versions->first ; ln ; ln = ln->next)
135+
fprintf(o->output, " <ows:ServiceTypeVersion>%s</ows:ServiceTypeVersion>\n", ln->value->buf);
135136

136-
for (ln = o->metadata->versions->first ; ln ; ln = ln->next) {
137-
fprintf(o->output, "%s", ln->value->buf);
138-
if (ln->next) fprintf(o->output, ",");
139-
}
140-
141-
fprintf(o->output, "</ows:ServiceTypeVersion>\n");
142137

143138
if (o->metadata->fees)
144139
fprintf(o->output, " <ows:Fees>%s</ows:Fees>\n", o->metadata->fees->buf);

0 commit comments

Comments
 (0)