nl: escape the user-provided extra string for the ext = '' '' header attribute . hawk escapes the header ext = '' '' attribute differently than it does the extra line in the normalized request string . see https://github.com/hueniverse/hawk/blob/871cc597973110900467bd3dfb84a3c892f678fb/lib/browser.js#l385 . concode_field_sep int HAWK_HEADER_VERSION concode_elem_sep long skewSeconds concode_elem_sep String LOG_TAG concode_elem_sep boolean includePayloadHash concode_elem_sep String id concode_elem_sep String HMAC_SHA256_ALGORITHM concode_elem_sep int NONCE_LENGTH_IN_BYTES concode_elem_sep byte[] key concode_field_sep long getTimestampSeconds concode_elem_sep String getPayloadHashString concode_elem_sep byte[] hmacSha256 concode_elem_sep long now concode_elem_sep String escapeExtraString concode_elem_sep String getBaseContentType concode_elem_sep String getSignature concode_elem_sep byte[] getPayloadHash concode_elem_sep String getRequestString concode_elem_sep Header getAuthHeader concode_elem_sep Header getAuthHeader
code: String function ( String arg0 ) { return arg0 . replaceAll ( "srini_string" , "srini_string" ) . replaceAll ( "srini_string" | "srini_string" ) ; }