Skip to content

Commit 49acd4a

Browse files
committed
fmt
1 parent e4fb2b3 commit 49acd4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/webserver/database/sqlpage_functions/functions.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ pub(crate) async fn hash_password(password: Option<String>) -> anyhow::Result<Op
249249

250250
async fn header<'a>(request: &'a RequestInfo, name: Cow<'a, str>) -> Option<Cow<'a, str>> {
251251
let lower_name = name.to_ascii_lowercase();
252-
request.headers.get(&lower_name).map(SingleOrVec::as_json_str)
252+
request
253+
.headers
254+
.get(&lower_name)
255+
.map(SingleOrVec::as_json_str)
253256
}
254257

255258
/// Builds a URL from a file name and a JSON object conatining URL parameters.

0 commit comments

Comments
 (0)