Skip to content

Commit 158990b

Browse files
authored
Change separator for metadata and tags (#82)
This is required to allow http headers with values like `x-p-meta-podlabels:app=goapp,hash=64f724hua4gs,make=cc`
1 parent c48c163 commit 158990b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/handlers/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use crate::utils::{self, merge};
3333

3434
const PREFIX_TAGS: &str = "x-p-tags-";
3535
const PREFIX_META: &str = "x-p-meta-";
36-
const SEPARATOR: char = ',';
36+
const SEPARATOR: char = '^';
3737

3838
pub async fn query(_req: HttpRequest, json: web::Json<Value>) -> HttpResponse {
3939
let json = json.into_inner();

server/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub mod header_parsing {
9090
return Err(ParseHeaderError::MaxHeadersLimitExceeded);
9191
}
9292

93-
Ok(labels.join(","))
93+
Ok(labels.join(&kv_separator.to_string()))
9494
}
9595

9696
#[derive(Debug, thiserror::Error)]

0 commit comments

Comments
 (0)