HomePhorge

Rest: extract target variant from accept-language header

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Rest: extract target variant from accept-language header

When using the accept-language header to determine the desired target
variant, use only a single language code from the header, instead of the
entire string. Using the entire string was causing failures in ETag
processing, since the accept-language header may contain spaces, while
the ETag may not.

Note that for now, we just use the first language code. In the future,
it would be nice if we could find the supported target variant that is
most preferred in the header.

Bug: T350852
Change-Id: I32af29627f68eafff6f097e2fc17723d2ebb39fa

Details

Provenance
danielAuthored on Feb 26 2024, 6:27 PM

Event Timeline

daniel <dkinzler@wikimedia.org> committed rMW58c46ae43c59: Rest: extract target variant from accept-language header (authored by daniel <dkinzler@wikimedia.org>).Feb 28 2024, 8:53 PM

Commit No Longer Exists

This commit no longer exists in the repository.