Skip to content

Commit

Permalink
add headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ueman committed Sep 25, 2024
1 parent b440966 commit be68145
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion passkit_server/lib/src/passkit_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ Function getLatestVersion(PassKitBackend backend) {
return Response.unauthorized(null);
}

return Response.ok(pass.sourceData);
return Response.ok(
pass.sourceData,
headers: {
'Content-type': 'application/vnd.apple.pkpass',
'Content-disposition': 'attachment; filename=pass.pkpass',
},
);
};
}

Expand Down

0 comments on commit be68145

Please sign in to comment.