fix a injection extname for server proxy

If extname is empty,it will be injected script.