File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -158,10 +158,14 @@ void ows_metadata_fill(ows * o, array * cgi)
158158 /* Initialize supported versions from service type */
159159 if (o -> metadata -> type ) {
160160 if (buffer_case_cmp (o -> metadata -> type , "WFS" )) {
161+ buffer_free (o -> metadata -> type );
162+ o -> metadata -> type = buffer_from_str ("WFS" );
161163 o -> metadata -> versions = list_init ();
162164 list_add_str (o -> metadata -> versions , "1.0.0" );
163165 list_add_str (o -> metadata -> versions , "1.1.0" );
164166 } else if (buffer_case_cmp (o -> metadata -> type , "WMS" )) {
167+ buffer_free (o -> metadata -> type );
168+ o -> metadata -> type = buffer_from_str ("WMS" );
165169 o -> metadata -> versions = list_init ();
166170 list_add_str (o -> metadata -> versions , "1.1.0" );
167171 list_add_str (o -> metadata -> versions , "1.3.0" );
You can’t perform that action at this time.
0 commit comments