Implemented http/2 push

This commit is contained in:
2017-11-11 17:34:21 +01:00
parent 783c3f878c
commit c81658b9f5
2 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,7 @@ func UserInfo() aero.Middleware {
next()
// Ignore non-HTML requests
if ctx.IsMediaResponse() {
if aero.IsMediaType(ctx.Response().Header().Get("Content-Type")) {
return
}