Skip to content

Commit c881d99

Browse files
jmnavarroSandro Santilli
authored and
Sandro Santilli
committed
Support case insensitive in format parameter. Closes #30
Also fixes https://github.com/Vizzuality/cartodb/issues/795
1 parent 538d985 commit c881d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function handleQuery(req, res) {
5151

5252
// sanitize and apply defaults to input
5353
dp = (dp === "" || _.isUndefined(dp)) ? '6' : dp;
54-
format = (format === "" || _.isUndefined(format)) ? null : format;
54+
format = (format === "" || _.isUndefined(format)) ? null : format.toLowerCase();
5555
sql = (sql === "" || _.isUndefined(sql)) ? null : sql;
5656
database = (database === "" || _.isUndefined(database)) ? null : database;
5757
limit = (_.isNumber(limit)) ? limit : null;

0 commit comments

Comments
 (0)