fix: Add comments about rationale and context for headers (#5926)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Andrew Lamb 2022-10-20 07:08:10 -04:00 committed by GitHub
parent 04320aced1
commit c8f2a5772e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -221,6 +221,9 @@ impl Error {
}
/// Add IOx specific headers to the response
///
/// storage-type: iox (needed so IDPE can show the errors to users)
/// see <https://github.com/influxdata/conductor/issues/1208>
fn add_headers(metadata: &mut MetadataMap) {
// Note we can't use capital letters otherwise the http header
// library asserts, so return lowercase storage-type