Comparing version 2.1.5 to 2.1.6
@@ -9,3 +9,3 @@ | ||
} else if (head[0] === "~") { | ||
receptor.onpull(head.substring(1), body, (body) => { response.end(body) }); | ||
receptor.onpull(head.substring(1), body, (body) => { response.end(body, "utf8") }); | ||
} else { | ||
@@ -21,2 +21,3 @@ throw new Error("Request head should start with either '-' or '~', got: "+head); | ||
return (next && next(), false); | ||
response.setHeader("Content-Type", "text/plain; charset=utf-8"); | ||
if (request.headers["content-length"]) { | ||
@@ -23,0 +24,0 @@ let body = ""; |
{ | ||
"name": "antena", | ||
"description": "Isomorphic communication library for node and browsers", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Laurent Christophe", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21192
434