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

(-)a/Koha/REST/V1.pm (-2 / +6 lines)
Lines 45-51 sub startup { Link Here
45
    });
45
    });
46
46
47
    # Force charset=utf8 in Content-Type header for JSON responses
47
    # Force charset=utf8 in Content-Type header for JSON responses
48
    $self->types->type(json => 'application/json; charset=utf8');
48
    $self->types->type( json    => 'application/json; charset=utf8' );
49
    # MARC-related types
50
    $self->types->type( marcxml => 'application/marcxml+xml' );
51
    $self->types->type( mij     => 'application/marc-in-json' );
52
    $self->types->type( marc    => 'application/marc' );
53
49
54
50
    my $secret_passphrase = C4::Context->config('api_secret_passphrase');
55
    my $secret_passphrase = C4::Context->config('api_secret_passphrase');
51
    if ($secret_passphrase) {
56
    if ($secret_passphrase) {
52
- 

Return to bug 21334