Rotation fixed and debugged http_plugin.