View | Details | Raw Unified | Return to bug 13799
Collapse All | Expand All

(-)a/Koha/REST/V1.pm (-1 / +4 lines)
Lines 68-73 sub startup { Link Here
68
        }
68
        }
69
    );
69
    );
70
70
71
    # Force charset=utf8 in Content-Type header for JSON responses
72
    $self->types->type(json => 'application/json; charset=utf8');
73
71
    $self->plugin(Swagger2 => {
74
    $self->plugin(Swagger2 => {
72
        route => $route,
75
        route => $route,
73
        url => $self->home->rel_file("api/v1/swagger.json"),
76
        url => $self->home->rel_file("api/v1/swagger.json"),
Lines 105-108 sub setKohaParamLogging { Link Here
105
        print __PACKAGE__."::startup():> No logfile given, defaulting to STDERR. Define your logfile and loglevel to the MOJO_LOGFILES and MOJO_LOGLEVEL environmental variables. If you want foreground logging, set the MOJO_LOGFILES as undef.\n";
108
        print __PACKAGE__."::startup():> No logfile given, defaulting to STDERR. Define your logfile and loglevel to the MOJO_LOGFILES and MOJO_LOGLEVEL environmental variables. If you want foreground logging, set the MOJO_LOGFILES as undef.\n";
106
    }
109
    }
107
}
110
}
108
1;
111
1;

Return to bug 13799