Skip to content

Commit

Permalink
Handle IE in gene download script
Browse files Browse the repository at this point in the history
  • Loading branch information
almasaeed2010 committed Jan 8, 2018
1 parent 813da56 commit 952375a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/gene_search.form.inc
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ function tripal_elasticsearch_gene_search_download() {
header('Content-Type: text/plain');
header("Content-Disposition: attachment; filename=\"gene_search_results\"");

// Handle IE downloads
header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");

try {
$count = $es->setTableSearchParams('gene_search_index', '', $query)
->count();
Expand Down

0 comments on commit 952375a

Please sign in to comment.