fix pull url bug when remote server doesn't support filename in header