Skip to content

Commit 00c43bd

Browse files
committed
Fix SapiHeader::value when value contains a : character
1 parent 96555c4 commit 00c43bd

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().split(':').nth(1).map(str::trim)
535+
self.as_str().splitn(2, ':').nth(1).map(str::trim)
536536
}
537537
}
538538

0 commit comments

Comments
 (0)