HttpServerOnAndroid
HttpServerOnAndroid copied to clipboard
文件不能直接打开,而是下载
和FTP(https://github.com/sonichy/FTPServe_Android)一样,文件不能直接打开,而是下载。 我是想在 Android 平台替代 termux 运行 python -m http.server. 好像不加 Content-disposition 头就行了。 https://github.com/gpfduoduo/HttpServerOnAndroid/blob/5e135fa1b4791e4bc7c8460e046812b9f37a4dd3/app/src/main/java/com/guo/duoduo/httpserver/http/FileBrowseHandler.java#L138