Skip to content

Commit

Permalink
better message
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-contreras-deel committed Aug 14, 2018
1 parent 0a1f7c6 commit 9365986
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/copy_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ function handleCopyTo (logger) {
const filename = req.query.filename || 'carto-sql-copyto.dmp';

// it is not sure, nginx may choose not to compress the body
// but most of the time yes and we want to have it in the metrics
// but we want to know it and save it in the metrics
// https://github.com/CartoDB/CartoDB-SQL-API/issues/515
const isGzip = req.get('accept-encoding') && req.get('accept-encoding').includes('gzip');

const streamCopy = new StreamCopy(sql, userDbParams);
Expand Down

0 comments on commit 9365986

Please sign in to comment.