[server] bug fix to handle SPA packets via http