Fix port recognition from URL when loading SVG's via node.

This commit is contained in:
kangax 2012-06-14 14:12:42 +02:00
parent 5e29a2b319
commit cd59885370
6 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
/*! Fabric.js Copyright 2008-2012, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.8.19" };
var fabric = fabric || { version: "0.8.20" };
if (typeof exports != 'undefined') {
exports.fabric = fabric;

4
dist/all.js vendored
View file

@ -1,6 +1,6 @@
/*! Fabric.js Copyright 2008-2012, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.8.19" };
var fabric = fabric || { version: "0.8.20" };
if (typeof exports != 'undefined') {
exports.fabric = fabric;
@ -12638,7 +12638,7 @@ fabric.Image.filters.GradientTransparency.fromObject = function(object) {
function request(url, encoding, callback) {
var oURL = URL.parse(url),
client = HTTP.createClient(80, oURL.hostname),
client = HTTP.createClient(oURL.port, oURL.hostname),
request = client.request('GET', oURL.pathname, { 'host': oURL.hostname });
client.addListener('error', function(err) {

4
dist/all.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -1,7 +1,7 @@
{
"name": "fabric",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"version": "0.8.19",
"version": "0.8.20",
"author": "Juriy Zaytsev <kangax@gmail.com>",
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
"repository": "git://github.com/kangax/fabric.js",

View file

@ -13,7 +13,7 @@
function request(url, encoding, callback) {
var oURL = URL.parse(url),
client = HTTP.createClient(80, oURL.hostname),
client = HTTP.createClient(oURL.port, oURL.hostname),
request = client.request('GET', oURL.pathname, { 'host': oURL.hostname });
client.addListener('error', function(err) {