Open jkkjonah opened 9 years ago
As of today, the smush.it api endpoint expects all spaces in file name to be URL encoded pluses (%2B).
e.g.: Image Name = image with spaces.png
This returns null: http://www.smushit.com/ysmush.it/ws.php?img=http://s3.amazonaws.com/BUCKET/image%20with%20spaces.png
This returns the expected response: http://www.smushit.com/ysmush.it/ws.php?img=http://s3.amazonaws.com/BUCKET/image%2Bwith%2Bspaces.png
As of today, the smush.it api endpoint expects all spaces in file name to be URL encoded pluses (%2B).
e.g.: Image Name = image with spaces.png
This returns null: http://www.smushit.com/ysmush.it/ws.php?img=http://s3.amazonaws.com/BUCKET/image%20with%20spaces.png
This returns the expected response: http://www.smushit.com/ysmush.it/ws.php?img=http://s3.amazonaws.com/BUCKET/image%2Bwith%2Bspaces.png