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

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

Return to bug 21334