Skip to content

Commit

Permalink
fix(server): append vary header instead of overriding it
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 17, 2023
1 parent 06820b5 commit fb3cf1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
H3Event,
H3Error,
send,
appendResponseHeader,
} from "h3";
import { IPX } from "./ipx";

Expand Down Expand Up @@ -70,7 +71,7 @@ export function createIPXH3Handler(ipx: IPX) {
delete modifiers.format;
if (autoFormat) {
modifiers.format = autoFormat;
setResponseHeader(event, "vary", "Accept");
appendResponseHeader(event, "vary", "Accept");
}
}

Expand Down

0 comments on commit fb3cf1d

Please sign in to comment.