Fixed ssl detection.
Fixed arraybuffer handling.