diff options
author | crupest <crupest@outlook.com> | 2021-01-11 21:34:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-11 21:34:57 +0800 |
commit | e4c96126ef3cb70fce3dec7244f0eb368f64db37 (patch) | |
tree | fd5e71c1bf306d9daac86f71226cabf164994018 /FrontEnd/src/app/http/common.ts | |
parent | ab89e1fccad60deabafb24d08398b3efadbe3cd8 (diff) | |
download | timeline-e4c96126ef3cb70fce3dec7244f0eb368f64db37.tar.gz timeline-e4c96126ef3cb70fce3dec7244f0eb368f64db37.tar.bz2 timeline-e4c96126ef3cb70fce3dec7244f0eb368f64db37.zip |
...
Diffstat (limited to 'FrontEnd/src/app/http/common.ts')
-rw-r--r-- | FrontEnd/src/app/http/common.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FrontEnd/src/app/http/common.ts b/FrontEnd/src/app/http/common.ts index 95d29fb6..0f46280c 100644 --- a/FrontEnd/src/app/http/common.ts +++ b/FrontEnd/src/app/http/common.ts @@ -179,3 +179,7 @@ export function convertToBlobWithEtag(res: AxiosResponse<Blob>): BlobWithEtag { etag: (res.headers as Record<"etag", string>)["etag"], }; } + +export function extractEtag(res: AxiosResponse): string { + return (res.headers as Record<"etag", string>)["etag"]; +} |