Last active
May 25, 2017 14:59
-
-
Save colinf/bc6e8f52ea6c403f9537cf231e4a5adf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GetHttpHeader ( headers; searchHdr ) = | |
Let ( | |
[ | |
$hdrCount = ValueCount ( headers ); | |
$nextValue = GetValue ( headers ; 1 ); | |
$nextHdr = Left ( $nextValue ; Length ( searchHdr ) ) | |
]; | |
If ( $nextHdr = searchHdr ; | |
Right ( $nextValue ; Length ( $nextValue ) - Length ( searchHdr ) - 2 ) | |
; | |
getHttpHeader (RightValues ( headers ; $hdrCount - 1 ); searchHdr) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment