diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index b30ba55efb..1f029ab8b2 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -126,6 +126,9 @@ OpenLayers.Layer.WFS = OpenLayers.Class( !OpenLayers.Feature.Vector) { this.vectorMode = false; } + + // Uppercase params + params = OpenLayers.Util.upperCaseObject(params); // Turn off error reporting, browsers like Safari may work // depending on the setup, and we don't want an unneccesary alert. diff --git a/tests/Layer/WFS.html b/tests/Layer/WFS.html index 461844892d..a74b782652 100644 --- a/tests/Layer/WFS.html +++ b/tests/Layer/WFS.html @@ -134,7 +134,7 @@ map.setCenter(new OpenLayers.LonLat(-100, 60), 3); } catch (Exception) { } - t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?typename=OWLS&maxfeatures=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625,-36.6796875,-12.109375,156.6796875", "Tile URL is set correctly when not encoded"); + t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?TYPENAME=OWLS&MAXFEATURES=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625,-36.6796875,-12.109375,156.6796875", "Tile URL is set correctly when not encoded"); map.destroy(); var map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", @@ -152,7 +152,7 @@ map.setCenter(new OpenLayers.LonLat(-100, 60), 3); } catch (Exception) { } - t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?typename=OWLS&maxfeatures=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625%2C-36.679687%2C-12.109375%2C156.679688", "Tile URL is set correctly when not encoded"); + t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?TYPENAME=OWLS&MAXFEATURES=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625%2C-36.679687%2C-12.109375%2C156.679688", "Tile URL is set correctly when not encoded"); map.destroy(); } function test_projection_srs(t) {