universal-analytics
Advanced tools
Comparing version 0.5.0 to 0.5.1
# History | ||
## 0.5.1 | ||
- Fixed bug that caused requests to fail | ||
## 0.5 | ||
@@ -4,0 +8,0 @@ |
@@ -66,6 +66,7 @@ `use strict` | ||
let body = ''; | ||
const { headers, statusCode, setEncoding } = response | ||
const { headers, statusCode } = response | ||
const hasError = statusCode >= 300; | ||
setEncoding('utf8'); | ||
response.setEncoding('utf8'); | ||
response.on('data', function (data) { | ||
@@ -72,0 +73,0 @@ body += data; |
{ | ||
"name": "universal-analytics", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "A node module for Google's Universal Analytics tracking", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
170318