Skip to content

Commit d43c0b1

Browse files
QardXenira
andauthored
Update src/zend/globals.rs
Co-authored-by: Xenira <[email protected]>
1 parent e7162e8 commit d43c0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zend/globals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ impl<'a> SapiHeader {
532532
/// Returns the header value.
533533
#[must_use]
534534
pub fn value(&'a self) -> Option<&'a str> {
535-
self.as_str().splitn(2, ':').nth(1).map(str::trim)
535+
self.as_str().split_once(':').map(|(_, value)| value.trim())
536536
}
537537
}
538538

0 commit comments

Comments
 (0)