Skip to content

Commit f6bb100

Browse files
committed
License headers change
1 parent 91f1c7a commit f6bb100

File tree

593 files changed

+2246
-6992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

593 files changed

+2246
-6992
lines changed

crates/axum-utils/src/client_authorization.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2022 The Matrix.org Foundation C.I.C.
1+
// Copyright (C) 2024 New Vector Ltd.
2+
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
use std::collections::HashMap;
168

crates/axum-utils/src/cookies.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2022 The Matrix.org Foundation C.I.C.
1+
// Copyright (C) 2024 New Vector Ltd.
2+
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
//! Private (encrypted) cookie jar, based on axum-extra's cookie jar
168

crates/axum-utils/src/csrf.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2022 The Matrix.org Foundation C.I.C.
1+
// Copyright (C) 2024 New Vector Ltd.
2+
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
use chrono::{DateTime, Duration, Utc};
168
use data_encoding::{DecodeError, BASE64URL_NOPAD};

crates/axum-utils/src/error_wrapper.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2023 The Matrix.org Foundation C.I.C.
1+
// Copyright (C) 2024 New Vector Ltd.
2+
// Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
use axum::response::{IntoResponse, Response};
168
use http::StatusCode;

crates/axum-utils/src/fancy_error.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2022 The Matrix.org Foundation C.I.C.
1+
// Copyright (C) 2024 New Vector Ltd.
2+
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
use axum::{
168
http::StatusCode,

crates/axum-utils/src/http_client_factory.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1+
// Copyright (C) 2024 New Vector Ltd.
12
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
use http_body_util::Full;
168
use hyper_util::rt::TokioExecutor;

crates/axum-utils/src/jwt.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2022 The Matrix.org Foundation C.I.C.
1+
// Copyright (C) 2024 New Vector Ltd.
2+
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
use axum::response::{IntoResponse, Response};
168
use axum_extra::typed_header::TypedHeader;

crates/axum-utils/src/language_detection.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2023 The Matrix.org Foundation C.I.C.
1+
// Copyright (C) 2024 New Vector Ltd.
2+
// Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
use std::cmp::Reverse;
168

crates/axum-utils/src/lib.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2022 The Matrix.org Foundation C.I.C.
1+
// Copyright (C) 2024 New Vector Ltd.
2+
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
#![deny(clippy::future_not_send)]
168
#![allow(clippy::module_name_repetitions)]

crates/axum-utils/src/sentry.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2023 The Matrix.org Foundation C.I.C.
1+
// Copyright (C) 2024 New Vector Ltd.
2+
// Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
23
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
4+
// SPDX-License-Identifier: AGPL-3.0-only
5+
// Please see LICENSE in the repository root for full details.
146

157
use std::convert::Infallible;
168

0 commit comments

Comments
 (0)