iron / staticfile

Static file-serving middleware for the Iron web framework.
MIT License
63 stars 56 forks source link

WIP: Changes for the upcoming iron 0.7 release with hyper 0.12 #104

Open zgtm opened 5 years ago

zgtm commented 5 years ago

This PR contains all the changes necessary for staticfile to work with the new iron crate based on hyper 0.12.

However, the tests are not updated so far, as they need the crate iron_test to be updated, which has not happend so far. Thus, I marked this PR as WIP for now, but if we want to release without updating iron_test, we could also drop the tests for now.

In order to get everything working, I copied the source of HttpDate from hyper 0.11 (src/hyper/header/shared/httpdate.rs). Since this crate and hyper are both MIT licensed, I hope this should pose no problem.