fix mode for http file