Skip to content

Commit

Permalink
fix(general): Do not remove empty cookies or headers (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker authored and jan-auer committed Jan 11, 2019
1 parent c846f83 commit 1ba31fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions general/src/protocol/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,17 @@ pub struct Request {

/// URL encoded contents of the Cookie header.
#[metastructure(pii = "true", bag_size = "medium")]
#[metastructure(skip_serialization = "empty_deep")]
#[metastructure(skip_serialization = "empty")]
pub cookies: Annotated<Cookies>,

/// HTTP request headers.
#[metastructure(pii = "true", bag_size = "large")]
#[metastructure(skip_serialization = "empty_deep")]
#[metastructure(skip_serialization = "empty")]
pub headers: Annotated<Headers>,

/// Server environment data, such as CGI/WSGI.
#[metastructure(pii = "true", bag_size = "large")]
#[metastructure(skip_serialization = "empty_deep")]
#[metastructure(skip_serialization = "empty")]
pub env: Annotated<Object<Value>>,

/// The inferred content type of the request payload.
Expand Down
4 changes: 2 additions & 2 deletions server/src/actors/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,10 @@ impl Handler<FetchProjectState> for ProjectCache {

match self.config.relay_mode() {
RelayMode::Proxy => {
return Response::ok(ProjectStateResponse::local(ProjectState::allowed()))
return Response::ok(ProjectStateResponse::local(ProjectState::allowed()));
}
RelayMode::Static => {
return Response::ok(ProjectStateResponse::local(ProjectState::missing()))
return Response::ok(ProjectStateResponse::local(ProjectState::missing()));
}
RelayMode::Managed => {
// Proceed with loading the config from upstream
Expand Down

0 comments on commit 1ba31fc

Please sign in to comment.