op-geth/cmd/swarm/mimegen
Alexey Sharov dc5d643bb5 cmd/swarm, swarm: cross-platform Content-Type detection (#17782)
- Mime types generator (Standard "mime" package rely on system-settings, see mime.osInitMime)
- Changed swarm/api.Upload:
    - simplify I/O throttling by semaphore primitive and use file name where possible
    - f.Close() must be called in Defer - otherwise panic or future added early return will cause leak of file descriptors
    - one error was suppressed
2018-10-01 13:39:39 +02:00
..
generator.go cmd/swarm, swarm: cross-platform Content-Type detection (#17782) 2018-10-01 13:39:39 +02:00
mime.types cmd/swarm, swarm: cross-platform Content-Type detection (#17782) 2018-10-01 13:39:39 +02:00