Skip to content
Snippets Groups Projects
Commit 6050e331 authored by Andy Yates's avatar Andy Yates
Browse files

[ENSCORESW-734]. Forcing us to use proper content types rather than text/plain which is lazy

parent 89591e02
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ sub process {
my ($self, $c, $stash_key) = @_;
$stash_key ||= 'rest';
$c->res->body(${$self->encode_seq($c, $stash_key)});
$c->res->headers->header('Content-Type' => 'text/plain');
$c->res->headers->header('Content-Type' => 'text/x-fasta');
return 1;
}
......
......@@ -27,7 +27,7 @@ sub process {
$gff->print_feature($f);
}
$c->res->body(${$output_fh->string_ref()});
$c->res->headers->header('Content-Type' => 'text/plain');
$c->res->headers->header('Content-Type' => 'text/x-gff3');
return 1;
}
......
......@@ -8,7 +8,7 @@ sub process {
my ($self, $c, $stash_key) = @_;
$c->res->body(${$self->encode_nh($c, $stash_key)});
$self->set_content_disposition($c, 'nh', $stash_key);
$c->res->headers->header('Content-Type' => 'text/plain');
$c->res->headers->header('Content-Type' => 'text/x-nh');
return 1;
}
......
......@@ -8,7 +8,7 @@ sub process {
my ($self, $c, $stash_key) = @_;
$c->res->body(${$self->encode_phyloxml($c, $stash_key)});
$self->set_content_disposition($c, 'xml', $stash_key);
$c->res->headers->header('Content-Type' => 'text/xml');
$c->res->headers->header('Content-Type' => 'text/x-phyloxml+xml');
return 1;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment